wok view libgcrypt/receipt @ rev 24441

firefox-official*: prohibit user update
author Hans-G?nter Theisgen
date Mon Feb 14 07:01:08 2022 +0100 (2022-02-14)
parents 7f7c79f6a65f
children 7f622f432a63
line source
1 # SliTaz package receipt.
3 PACKAGE="libgcrypt"
4 VERSION="1.8.5"
5 CATEGORY="security"
6 SHORT_DESC="Cryptographic library based on GnuPG."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 WEB_SITE="https://www.gnupg.org/related_software/libgcrypt/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$TARBALL"
14 DEPENDS="libgpg-error"
15 BUILD_DEPENDS="libgpg-error-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Integrity check: https://www.gnupg.org/download/integrity_check.html
29 echo "2d8781e92f88706707a1e76fb628b499ad538a30 $SRC/$TARBALL" | sha1sum -c || exit 1
31 case "$ARCH" in
32 arm)
33 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error"
34 ./configure \
35 --build=i486-slitaz-linux \
36 --host=arm-slitaz-linux-gnueabi ;;
37 *)
38 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error"
39 ./configure \
40 --build=$HOST_SYSTEM \
41 --host=$HOST_SYSTEM ;;
42 esac &&
43 make &&
44 make install
46 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 mkdir -p $fs/usr/lib
55 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
56 cp -a $install/usr/bin/hmac256 $fs/usr/bin
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 }