wok annotate libgcrypt/receipt @ rev 16189

ARM: add ruby!!!
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 19:39:55 2014 +0200 (2014-03-30)
parents 8f447cf2eee5
children 17e313b5b9c1
rev   line source
erjo@180 1 # SliTaz package receipt.
erjo@180 2
erjo@180 3 PACKAGE="libgcrypt"
domcox@15398 4 VERSION="1.5.3"
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"
erjo@180 10 WEB_SITE="http://www.gnupg.org/"
erjo@180 11 WGET_URL="ftp://ftp.gnupg.org/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 {
pankso@15978 20 case "$ARCH" in
pankso@15978 21 arm)
pankso@15978 22 #LIBS="-L/cross/arm/sysroot/usr/lib -lgpg-error"
pankso@15978 23 ./configure \
pankso@15978 24 --build=i486-slitaz-linux \
pankso@15978 25 --host=arm-slitaz-linux-gnueabi ;;
pankso@15978 26 *)
pankso@15978 27 export LDFLAGS="-Wl,--copy-dt-needed-entries -lgpg-error"
pankso@15978 28 ./configure \
pankso@15978 29 --build=$HOST_SYSTEM \
pankso@15978 30 --host=$HOST_SYSTEM ;;
pankso@15978 31 esac &&
pankso@10363 32 make && make install
erjo@180 33 }
erjo@180 34
erjo@180 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@180 36 genpkg_rules()
erjo@180 37 {
domcox@15398 38 mkdir -p $fs/usr/bin $fs/usr/lib
pascal@15473 39 cp -a $install/usr/bin/dumpsexp $fs/usr/bin
pankso@15978 40 cp -a $install/usr/bin/hmac256 $fs/usr/bin
pascal@15473 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@180 42 }