wok-next view gnutls/receipt @ rev 20593
Up gpm (1.20.7)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 16:28:35 2018 +0300 (2018-04-14) |
parents | e6615350078d |
children | 523cce42deab |
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
13 TARBALL_MD5="0ab25eb6a1509345dd085bc21a387951"
15 BUILD_DEPENDS_arm="libtasn1-dev ncurses-dev readline-dev nettle-dev \
16 libgpg-error-dev libgcrypt-dev openssl-dev gmp-dev lzip"
17 BUILD_DEPENDS="nettle-dev libtasn1-dev libunistring-dev gettext openssl-dev \
18 libidn-dev unbound-dev p11-kit-dev"
19 SPLIT="libgnutls gnutls-dev"
21 compile_rules() {
22 case "$ARCH" in
23 arm*)
24 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
25 --without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \
26 --with-zlib" ;;
27 esac
29 ./configure \
30 --enable-openssl-compatibility \
31 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
32 $ARCH_ARGS \
33 $CONFIGURE_ARGS &&
34 fix libtool &&
35 make && make install &&
36 make -C doc/reference install-data-local
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 gnutls)
42 copy bin/
43 DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \
44 nettle p11-kit zlib"
45 DEPENDS_arm="nettle libgpg-error ncurses readline zlib \
46 gcc-lib-base libgnutls openssl libtasn1"
47 case $ARCH in
48 arm*) DEPENDS=$DEPENDS_arm;;
49 esac
50 ;;
51 libgnutls)
52 copy *.so*
53 CAT="security|shared libraries"
54 DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \
55 unbound zlib"
56 ;;
57 *-dev)
58 copy @dev
59 DEPENDS="gnutls libgnutls gmp-dev openssl-dev libffi-dev \
60 libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \
61 unbound-dev zlib-dev"
62 ;;
63 esac
64 }