SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ntl"

# SliTaz package receipt.

PACKAGE="ntl"
VERSION="11.5.1"
CATEGORY="utilities"
SHORT_DESC="A Library for doing Number Theory."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="LGPLv2.1+"
WEB_SITE="https://libntl.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/$TARBALL"
WGET_URL="https://github.com/libntl/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS=""
BUILD_DEPENDS="gcc83 gf2x-dev glibc-dev gmp-dev libtool perl"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/libntl/ntl/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export    CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"

    cd src
    ./configure            \
        CXX=g++-83        \
        DEF_PREFIX=/usr        \
        NTL_STD_CXX11=on    \
        NTL_GMP_LIP=on        \
        NTL_GF2X_LIB=on &&
    make &&
    sed -i '/^DEF_PREFIX=\/usr$/d' makefile
    make install DEF_PREFIX=$install/usr
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)