wok annotate libgcrypt/receipt @ rev 25500

new default version for java8-jre
author Hans-G?nter Theisgen
date Fri Dec 30 10:14:12 2022 +0100 (22 months ago)
parents 5d79829fa876
children
rev   line source
erjo@180 1 # SliTaz package receipt.
erjo@180 2
erjo@180 3 PACKAGE="libgcrypt"
Hans-G?nter@24791 4 VERSION="1.9.4"
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@24791 29 echo "1bccc8393482fa1953323ff429c6b5ba5676eb1a $SRC/$TARBALL" | sha1sum -c || exit 1
al@19226 30
pankso@15978 31 case "$ARCH" in
Hans-G?nter@24791 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 ;;
Hans-G?nter@24791 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 \
Hans-G?nter@24791 41 --host=$HOST_SYSTEM
Hans-G?nter@24791 42 ;;
pankso@15978 43 esac &&
Hans-G?nter@23031 44 make &&
Hans-G?nter@23031 45 make install
al@19226 46
al@19226 47 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
erjo@180 48 }
erjo@180 49
erjo@180 50 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@180 51 genpkg_rules()
erjo@180 52 {
Hans-G?nter@23031 53 mkdir -p $fs/usr/bin
Hans-G?nter@23031 54 mkdir -p $fs/usr/lib
Hans-G?nter@23031 55
Hans-G?nter@23031 56 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
Hans-G?nter@23031 57 cp -a $install/usr/bin/hmac256 $fs/usr/bin
Hans-G?nter@23031 58 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@180 59 }