SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "double-conversion"

source=""

# SliTaz package receipt.

PACKAGE="double-conversion"
VERSION="3.2.0"
CATEGORY="development"
TAGS="IEEE"
SHORT_DESC="Binary-decimal and decimal-binary routines for IEEE doubles."
MAINTAINER="maintainer@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/google/double-conversion"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/google/$PACKAGE/archive/v$VERSION.tar.gz"

BUILD_DEPENDS="cmake"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -D BUILD_TESTING=ON        \
        -D CMAKE_INSTALL_PREFIX=/usr    \
        -D CMAKE_INSTALL_LIBDIR=lib    \
        -D BUILD_SHARED_LIBS=ON
    make &&
    make install DESTDIR=$DESTDIR

}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}

testsuite()
{
    cd    $src/_build
    test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)