wok-6.x view libgcrypt/receipt @ rev 19552

Up smtube (16.7.2), smplayer (16.11.0)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Dec 10 13:06:49 2016 +0100 (2016-12-10)
parents 17e313b5b9c1
children 4159aad20572
line source
1 # SliTaz package receipt.
3 PACKAGE="libgcrypt"
4 VERSION="1.7.1"
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 "b688add52b622bb96bbd823ba21aa05a116d442f $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 }