wok-current view libgcrypt/receipt @ rev 24958
updated nbd (3.20 -> 3.24)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 16:50:32 2022 +0100 (2022-04-23) |
parents | 5d79829fa876 |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="libgcrypt"
4 VERSION="1.9.4"
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 "1bccc8393482fa1953323ff429c6b5ba5676eb1a $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 ;;
43 esac &&
44 make &&
45 make install
47 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/bin
54 mkdir -p $fs/usr/lib
56 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
57 cp -a $install/usr/bin/hmac256 $fs/usr/bin
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 }