wok-current annotate libgcrypt/receipt @ rev 24108
Up rdesktop (1.9.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 08:31:51 2021 +0000 (2021-09-28) |
parents | 7f7c79f6a65f |
children | 7f622f432a63 |
rev | line source |
---|---|
erjo@180 | 1 # SliTaz package receipt. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="libgcrypt" |
Hans-G?nter@23031 | 4 VERSION="1.8.5" |
erjo@180 | 5 CATEGORY="security" |
Hans-G?nter@23031 | 6 SHORT_DESC="Cryptographic library based on GnuPG." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15473 | 8 LICENSE="GPL2 LGPL2.1" |
Hans-G?nter@23031 | 9 WEB_SITE="https://www.gnupg.org/related_software/libgcrypt/" |
Hans-G?nter@23031 | 10 |
erjo@180 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19226 | 12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$TARBALL" |
pankso@10363 | 13 |
pankso@10363 | 14 DEPENDS="libgpg-error" |
pankso@10363 | 15 BUILD_DEPENDS="libgpg-error-dev" |
erjo@180 | 16 |
Hans-G?nter@23031 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@23031 | 18 |
pascal@24072 | 19 current_version() |
pascal@24072 | 20 { |
pascal@24072 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 23 } |
pascal@24072 | 24 |
erjo@180 | 25 # Rules to configure and make the package. |
erjo@180 | 26 compile_rules() |
erjo@180 | 27 { |
al@19226 | 28 # Integrity check: https://www.gnupg.org/download/integrity_check.html |
Hans-G?nter@23031 | 29 echo "2d8781e92f88706707a1e76fb628b499ad538a30 $SRC/$TARBALL" | sha1sum -c || exit 1 |
al@19226 | 30 |
pankso@15978 | 31 case "$ARCH" in |
pankso@15978 | 32 arm) |
pankso@15978 | 33 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error" |
pankso@15978 | 34 ./configure \ |
pankso@15978 | 35 --build=i486-slitaz-linux \ |
pankso@15978 | 36 --host=arm-slitaz-linux-gnueabi ;; |
pankso@15978 | 37 *) |
pascal@17670 | 38 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error" |
Hans-G?nter@23031 | 39 ./configure \ |
Hans-G?nter@23031 | 40 --build=$HOST_SYSTEM \ |
pankso@15978 | 41 --host=$HOST_SYSTEM ;; |
pankso@15978 | 42 esac && |
Hans-G?nter@23031 | 43 make && |
Hans-G?nter@23031 | 44 make install |
al@19226 | 45 |
al@19226 | 46 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
erjo@180 | 47 } |
erjo@180 | 48 |
erjo@180 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@180 | 50 genpkg_rules() |
erjo@180 | 51 { |
Hans-G?nter@23031 | 52 mkdir -p $fs/usr/bin |
Hans-G?nter@23031 | 53 mkdir -p $fs/usr/lib |
Hans-G?nter@23031 | 54 |
Hans-G?nter@23031 | 55 cp -a $install/usr/bin/dumpsexp $fs/usr/bin |
Hans-G?nter@23031 | 56 cp -a $install/usr/bin/hmac256 $fs/usr/bin |
Hans-G?nter@23031 | 57 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@180 | 58 } |