wok-next view gnutls/receipt @ rev 20379

superswitcher: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 26 22:33:32 2017 +0100 (2017-11-26)
parents 4ca71b0ef823
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnutls"
4 VERSION="3.5.9"
5 CATEGORY="security"
6 SHORT_DESC="GNU Transport Layer Security Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://gnutls.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
14 TARBALL_MD5="0ab25eb6a1509345dd085bc21a387951"
16 BUILD_DEPENDS="nettle-dev libtasn1-dev libunistring-dev gettext libcrypto-dev \
17 libidn-dev unbound-dev p11-kit-dev"
18 BUILD_DEPENDS_arm="libtasn1-dev ncurses-dev readline-dev nettle-dev \
19 libgpg-error-dev libgcrypt-dev libcrypto-dev gmp-dev lzip"
20 SPLIT="libgnutls gnutls-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Handle cross compilation.
26 case "$ARCH" in
27 arm*)
28 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
29 --without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \
30 --with-zlib" ;;
31 esac
33 ./configure \
34 --enable-openssl-compatibility \
35 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
36 $CONFIGURE_ARGS ${ARCH_ARGS} &&
37 make && make install &&
38 make -C doc/reference install-data-local
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 gnutls)
46 copy bin/
47 DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \
48 nettle p11-kit zlib"
49 DEPENDS_arm="nettle libgpg-error ncurses readline zlib \
50 gcc-lib-base libgnutls libcrypto libtasn1"
51 case $ARCH in
52 arm*) DEPENDS=$DEPENDS_arm;;
53 esac
54 ;;
55 libgnutls)
56 copy *.so*
57 CAT="security|shared libraries"
58 DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \
59 unbound zlib"
60 ;;
61 *-dev)
62 copy @dev
63 DEPENDS="gnutls libgnutls gmp-dev libcrypto-dev libffi-dev \
64 libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \
65 unbound-dev zlib-dev"
66 ;;
67 esac
68 }