wok-next diff nettle/receipt @ rev 20690
add missing SHA256sums
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Mon May 21 19:36:47 2018 +0000 (2018-05-21) |
parents | 1a86cb99cbbf |
children | e7a485521d6a |
line diff
1.1 --- a/nettle/receipt Thu May 11 02:23:02 2017 +0300 1.2 +++ b/nettle/receipt Mon May 21 19:36:47 2018 +0000 1.3 @@ -1,37 +1,40 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="nettle" 1.8 VERSION="3.3" 1.9 CATEGORY="security" 1.10 -SHORT_DESC="Nettle is a cryptographic library that is designed to fit easily in more or less any context." 1.11 +SHORT_DESC="Nettle cryptographic library" 1.12 MAINTAINER="devl547@gmail.com" 1.13 LICENSE="LGPL2.1" 1.14 WEB_SITE="http://www.lysator.liu.se/~nisse/nettle/" 1.15 -HOST_ARCH="i486 arm" 1.16 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.19 1.20 -DEPENDS="gmp" 1.21 BUILD_DEPENDS="openssl-dev gmp-dev texinfo" 1.22 +SPLIT="nettle-dev" 1.23 1.24 -# Handle cross compilation. 1.25 -case "$ARCH" in 1.26 - arm) 1.27 - ARCH_ARGS="--enable-arm-neon" ;; 1.28 -esac 1.29 +compile_rules() { 1.30 + case "$ARCH" in 1.31 + arm) ARCH_ARGS='--enable-arm-neon';; 1.32 + *) ARCH_ARGS='';; 1.33 + esac 1.34 1.35 -# Rules to configure and make the package. 1.36 -compile_rules() 1.37 -{ 1.38 ./configure \ 1.39 --disable-static \ 1.40 - $CONFIGURE_ARGS ${ARCH_ARGS} && 1.41 + $CONFIGURE_ARGS $ARCH_ARGS && 1.42 make && make install 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 - copy @std 1.49 +genpkg_rules() { 1.50 + case $PACKAGE in 1.51 + nettle) 1.52 + copy @std 1.53 + DEPENDS="gmp" 1.54 + ;; 1.55 + *-dev) 1.56 + copy @dev 1.57 + DEPENDS="nettle gmp-dev" 1.58 + ;; 1.59 + esac 1.60 }