wok-next annotate gnutls/receipt @ rev 20657
Up openjpeg2 (2.3.0), pciutils (3.5.6), pcre (8.41), pcre2 (10.31), pinentry (1.1.0), sakura (3.6.0), vte (0.50.2); add openobex, pax.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 05 16:03:34 2018 +0300 (2018-05-05) |
parents | e6615350078d |
children | 523cce42deab |
rev | line source |
---|---|
al@19797 | 1 # SliTaz package receipt v2. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="gnutls" |
al@19797 | 4 VERSION="3.5.9" |
erjo@180 | 5 CATEGORY="security" |
erjo@180 | 6 SHORT_DESC="GNU Transport Layer Security Library" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19693 | 9 WEB_SITE="http://gnutls.org/" |
al@19693 | 10 |
al@19693 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@17396 | 12 WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL" |
al@19797 | 13 TARBALL_MD5="0ab25eb6a1509345dd085bc21a387951" |
erjo@180 | 14 |
al@20443 | 15 BUILD_DEPENDS_arm="libtasn1-dev ncurses-dev readline-dev nettle-dev \ |
al@20453 | 16 libgpg-error-dev libgcrypt-dev openssl-dev gmp-dev lzip" |
al@20453 | 17 BUILD_DEPENDS="nettle-dev libtasn1-dev libunistring-dev gettext openssl-dev \ |
al@19797 | 18 libidn-dev unbound-dev p11-kit-dev" |
al@19693 | 19 SPLIT="libgnutls gnutls-dev" |
pankso@16258 | 20 |
al@20443 | 21 compile_rules() { |
al@19797 | 22 case "$ARCH" in |
al@19797 | 23 arm*) |
al@19797 | 24 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \ |
al@19797 | 25 --without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \ |
al@19797 | 26 --with-zlib" ;; |
al@19797 | 27 esac |
al@19797 | 28 |
pankso@16258 | 29 ./configure \ |
pascal@20379 | 30 --enable-openssl-compatibility \ |
psychomaniak@18166 | 31 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \ |
al@20573 | 32 $ARCH_ARGS \ |
al@20573 | 33 $CONFIGURE_ARGS && |
al@20573 | 34 fix libtool && |
al@19693 | 35 make && make install && |
al@19693 | 36 make -C doc/reference install-data-local |
erjo@180 | 37 } |
erjo@180 | 38 |
al@20443 | 39 genpkg_rules() { |
al@19797 | 40 case $PACKAGE in |
al@19797 | 41 gnutls) |
al@19797 | 42 copy bin/ |
al@19797 | 43 DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \ |
al@19797 | 44 nettle p11-kit zlib" |
al@19797 | 45 DEPENDS_arm="nettle libgpg-error ncurses readline zlib \ |
al@20453 | 46 gcc-lib-base libgnutls openssl libtasn1" |
al@19797 | 47 case $ARCH in |
al@19797 | 48 arm*) DEPENDS=$DEPENDS_arm;; |
al@19797 | 49 esac |
al@19797 | 50 ;; |
al@19797 | 51 libgnutls) |
al@19797 | 52 copy *.so* |
al@19797 | 53 CAT="security|shared libraries" |
al@19797 | 54 DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \ |
al@19797 | 55 unbound zlib" |
al@19797 | 56 ;; |
al@19797 | 57 *-dev) |
al@19797 | 58 copy @dev |
al@20453 | 59 DEPENDS="gnutls libgnutls gmp-dev openssl-dev libffi-dev \ |
al@19797 | 60 libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \ |
al@19797 | 61 unbound-dev zlib-dev" |
al@19797 | 62 ;; |
al@19797 | 63 esac |
erjo@180 | 64 } |