wok-current view nettle/receipt @ rev 24132
Up tazinst (114)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:07:33 2021 +0000 (2021-10-23) |
parents | eeb3f2dda9df |
children | cb70b1c31fee |
line source
1 # SliTaz package receipt.
3 PACKAGE="nettle"
4 VERSION="3.5.1"
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 current_version()
26 {
27 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
28 sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./configure \
35 CC=gcc-83 \
36 CXX=g++-83 \
37 --libdir=/usr/lib \
38 --enable-shared \
39 $CONFIGURE_ARGS \
40 ${ARCH_ARGS} &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }