wok view ntl/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | 19e4434dde5f |
children |
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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }