wok-6.x view libgcrypt/receipt @ rev 20349
libgcrypt update: 1.7.1 (2016 June) -> 1.8.2 (2017 Dec)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Jun 09 10:52:47 2018 +0000 (2018-06-09) |
parents | ac006a7bf27c |
children | 334ce255dab1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libgcrypt"
4 VERSION="1.8.2"
5 CATEGORY="security"
6 SHORT_DESC="Cryptographic library based on GnuPG"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.gnupg.org/related_software/libgcrypt/"
11 WGET_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libgpg-error"
15 BUILD_DEPENDS="libgpg-error-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Integrity check: https://www.gnupg.org/download/integrity_check.html
21 echo "ab8aae5d7a68f8e0988f90e11e7f6a4805af5c8d $SRC/$TARBALL" | sha1sum -c || exit 1
23 case "$ARCH" in
24 arm)
25 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error"
26 ./configure \
27 --build=i486-slitaz-linux \
28 --host=arm-slitaz-linux-gnueabi ;;
29 *)
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error"
31 ./configure \
32 --build=$HOST_SYSTEM \
33 --host=$HOST_SYSTEM ;;
34 esac &&
35 make && make install
37 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin $fs/usr/lib
44 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
45 cp -a $install/usr/bin/hmac256 $fs/usr/bin
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }