wok view gnutls/receipt @ rev 17437

slitaz-boot-scripts: install required slitaz-arm-configs in ARM case
author Richard Dunbar <mojo@slitaz.org>
date Sun Dec 07 19:35:57 2014 -0500 (2014-12-07)
parents 838687a9dc32
children 4460c3cc7f05
line source
1 # SliTaz package receipt.
3 PACKAGE="gnutls"
4 VERSION="3.3.10"
5 CATEGORY="security"
6 SHORT_DESC="GNU Transport Layer Security Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.lz"
10 WEB_SITE="http://www.gnu.org/software/gnutls/"
11 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="nettle libgpg-error ncurses readline zlib gcc-lib-base
15 libgnutls libcrypto libtasn1"
16 BUILD_DEPENDS="libtasn1-dev ncurses-dev readline-dev nettle-dev
17 libgpg-error-dev libgcrypt-dev libcrypto-dev gmp-dev lzip"
19 # Handle SliTaz arch.
20 case "$SLITAZ_ARCH" in
21 i?86) DEPENDS="$DEPENDS p11-kit" ;;
22 esac
24 # Handle cross compilation.
25 case "$ARCH" in
26 i?86)
27 BUILD_DEPENDS="$BUILD_DEPENDS p11-kit-dev" ;;
28 arm*)
29 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
30 --without-p11-kit --disable-rpath" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./configure \
37 --with-libgcrypt \
38 --disable-guile \
39 --with-zlib \
40 $CONFIGURE_ARGS ${ARCH_ARGS} &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 }