wok view libgcrypt/receipt @ rev 23041
linphone: added build dependency cmake
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 04 14:40:01 2020 +0100 (2020-03-04) |
parents | f83b91339ec0 |
children | 5d79829fa876 |
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Integrity check: https://www.gnupg.org/download/integrity_check.html
23 echo "2d8781e92f88706707a1e76fb628b499ad538a30 $SRC/$TARBALL" | sha1sum -c || exit 1
25 case "$ARCH" in
26 arm)
27 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error"
28 ./configure \
29 --build=i486-slitaz-linux \
30 --host=arm-slitaz-linux-gnueabi ;;
31 *)
32 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error"
33 ./configure \
34 --build=$HOST_SYSTEM \
35 --host=$HOST_SYSTEM ;;
36 esac &&
37 make &&
38 make install
40 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin
47 mkdir -p $fs/usr/lib
49 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
50 cp -a $install/usr/bin/hmac256 $fs/usr/bin
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }