wok-next view gnutls/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | f463de72afe3 |
children | 111038df4ab1 |
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 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
35 $CONFIGURE_ARGS ${ARCH_ARGS} &&
36 make && make install &&
37 make -C doc/reference install-data-local
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 gnutls)
45 copy bin/
46 DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \
47 nettle p11-kit zlib"
48 DEPENDS_arm="nettle libgpg-error ncurses readline zlib \
49 gcc-lib-base libgnutls libcrypto libtasn1"
50 case $ARCH in
51 arm*) DEPENDS=$DEPENDS_arm;;
52 esac
53 ;;
54 libgnutls)
55 copy *.so*
56 CAT="security|shared libraries"
57 DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \
58 unbound zlib"
59 ;;
60 *-dev)
61 copy @dev
62 DEPENDS="gnutls libgnutls gmp-dev libcrypto-dev libffi-dev \
63 libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \
64 unbound-dev zlib-dev"
65 ;;
66 esac
67 }