wok view nettle/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | b2d550a4aebd |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nettle"
4 VERSION="3.7.3"
5 CATEGORY="security"
6 SHORT_DESC="A cryptographic library that is designed to fit easily in more or less any context."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.lysator.liu.se/~nisse/nettle/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="gcc83-lib-base gmp"
15 BUILD_DEPENDS="gcc83 gmp-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm)
22 ARCH_ARGS="--enable-arm-neon" ;;
23 esac
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
29 sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 CC=gcc-83 \
37 CXX=g++-83 \
38 --libdir=/usr/lib \
39 --enable-shared \
40 $CONFIGURE_ARGS \
41 ${ARCH_ARGS} &&
42 make &&
43 make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_folders bin
50 cook_copy_files *.so*
51 }