wok annotate libgcrypt/receipt @ rev 20661
Up slitaz-base-files (339)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 14 10:40:58 2019 +0100 (2019-01-14) |
parents | fac86802a927 |
children | 7f7c79f6a65f |
rev | line source |
---|---|
erjo@180 | 1 # SliTaz package receipt. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="libgcrypt" |
Hans-G?nter@20553 | 4 VERSION="1.8.4" |
erjo@180 | 5 CATEGORY="security" |
erjo@180 | 6 SHORT_DESC="Cryptographic library based on GnuPG" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15473 | 8 LICENSE="GPL2 LGPL2.1" |
erjo@180 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19226 | 10 WEB_SITE="https://www.gnupg.org/related_software/libgcrypt/" |
al@19226 | 11 WGET_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$TARBALL" |
pankso@15978 | 12 HOST_ARCH="i486 arm" |
pankso@10363 | 13 |
pankso@10363 | 14 DEPENDS="libgpg-error" |
pankso@10363 | 15 BUILD_DEPENDS="libgpg-error-dev" |
erjo@180 | 16 |
erjo@180 | 17 # Rules to configure and make the package. |
erjo@180 | 18 compile_rules() |
erjo@180 | 19 { |
al@19226 | 20 # Integrity check: https://www.gnupg.org/download/integrity_check.html |
Hans-G?nter@20554 | 21 echo "4a8ef9db6922f3a31992aca5640b4198a69b58fc $SRC/$TARBALL" | sha1sum -c || exit 1 |
al@19226 | 22 |
pankso@15978 | 23 case "$ARCH" in |
pankso@15978 | 24 arm) |
pankso@15978 | 25 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error" |
pankso@15978 | 26 ./configure \ |
pankso@15978 | 27 --build=i486-slitaz-linux \ |
pankso@15978 | 28 --host=arm-slitaz-linux-gnueabi ;; |
pankso@15978 | 29 *) |
pascal@17670 | 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error" |
pankso@15978 | 31 ./configure \ |
pankso@15978 | 32 --build=$HOST_SYSTEM \ |
pankso@15978 | 33 --host=$HOST_SYSTEM ;; |
pankso@15978 | 34 esac && |
pankso@10363 | 35 make && make install |
al@19226 | 36 |
al@19226 | 37 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
erjo@180 | 38 } |
erjo@180 | 39 |
erjo@180 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@180 | 41 genpkg_rules() |
erjo@180 | 42 { |
domcox@15398 | 43 mkdir -p $fs/usr/bin $fs/usr/lib |
pascal@15473 | 44 cp -a $install/usr/bin/dumpsexp $fs/usr/bin |
pankso@15978 | 45 cp -a $install/usr/bin/hmac256 $fs/usr/bin |
pascal@15473 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@180 | 47 } |