wok-6.x annotate libgcrypt/receipt @ rev 20134

linux: update modules.list
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 28 22:10:24 2017 +0200 (2017-10-28)
parents 17e313b5b9c1
children 4159aad20572
rev   line source
erjo@180 1 # SliTaz package receipt.
erjo@180 2
erjo@180 3 PACKAGE="libgcrypt"
al@19226 4 VERSION="1.7.1"
erjo@180 5 CATEGORY="security"
erjo@180 6 SHORT_DESC="Cryptographic library based on GnuPG"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15473 8 LICENSE="GPL2 LGPL2.1"
erjo@180 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19226 10 WEB_SITE="https://www.gnupg.org/related_software/libgcrypt/"
al@19226 11 WGET_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$TARBALL"
pankso@15978 12 HOST_ARCH="i486 arm"
pankso@10363 13
pankso@10363 14 DEPENDS="libgpg-error"
pankso@10363 15 BUILD_DEPENDS="libgpg-error-dev"
erjo@180 16
erjo@180 17 # Rules to configure and make the package.
erjo@180 18 compile_rules()
erjo@180 19 {
al@19226 20 # Integrity check: https://www.gnupg.org/download/integrity_check.html
al@19226 21 echo "b688add52b622bb96bbd823ba21aa05a116d442f $SRC/$TARBALL" | sha1sum -c || exit 1
al@19226 22
pankso@15978 23 case "$ARCH" in
pankso@15978 24 arm)
pankso@15978 25 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error"
pankso@15978 26 ./configure \
pankso@15978 27 --build=i486-slitaz-linux \
pankso@15978 28 --host=arm-slitaz-linux-gnueabi ;;
pankso@15978 29 *)
pascal@17670 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgpg-error"
pankso@15978 31 ./configure \
pankso@15978 32 --build=$HOST_SYSTEM \
pankso@15978 33 --host=$HOST_SYSTEM ;;
pankso@15978 34 esac &&
pankso@10363 35 make && make install
al@19226 36
al@19226 37 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
erjo@180 38 }
erjo@180 39
erjo@180 40 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@180 41 genpkg_rules()
erjo@180 42 {
domcox@15398 43 mkdir -p $fs/usr/bin $fs/usr/lib
pascal@15473 44 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
pankso@15978 45 cp -a $install/usr/bin/hmac256 $fs/usr/bin
pascal@15473 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@180 47 }