wok view ntl/receipt @ rev 25005

updated ntl (11.4.3 -> 11.5.1)
author Hans-G?nter Theisgen
date Mon May 16 16:29:07 2022 +0100 (2022-05-16)
parents ad8b9ff412d2
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="ntl"
4 VERSION="11.5.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A Library for doing Number Theory."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPLv2.1+"
9 WEB_SITE="https://libntl.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 WGET_URL="https://github.com/libntl/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS=""
16 BUILD_DEPENDS="gcc83 gf2x-dev glibc-dev gmp-dev libtool perl"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/libntl/ntl/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
30 cd src
31 ./configure \
32 CXX=g++-83 \
33 DEF_PREFIX=/usr \
34 NTL_STD_CXX11=on \
35 NTL_GMP_LIP=on \
36 NTL_GF2X_LIB=on &&
37 make &&
38 sed -i '/^DEF_PREFIX=\/usr$/d' makefile
39 make install DEF_PREFIX=$install/usr
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 }