wok-next diff gnutls/receipt @ rev 20024

Up tesseract-ocr (3.05.01)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 12:39:31 2017 +0200 (2017-10-22)
parents f463de72afe3
children 111038df4ab1
line diff
     1.1 --- a/gnutls/receipt	Sun Jun 18 04:38:10 2017 +0300
     1.2 +++ b/gnutls/receipt	Sun Oct 22 12:39:31 2017 +0200
     1.3 @@ -1,45 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="gnutls"
     1.8 -VERSION="3.5.3"
     1.9 +VERSION="3.5.9"
    1.10  CATEGORY="security"
    1.11  SHORT_DESC="GNU Transport Layer Security Library"
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14  WEB_SITE="http://gnutls.org/"
    1.15  HOST_ARCH="i486 arm"
    1.16 -SUGGESTED="cacerts"
    1.17  
    1.18  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.19  WGET_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
    1.20 +TARBALL_MD5="0ab25eb6a1509345dd085bc21a387951"
    1.21  
    1.22 -DEPENDS="gmp libffi libtasn1 nettle p11-kit zlib"
    1.23 -BUILD_DEPENDS="nettle-dev libtasn1-dev gtk-doc gettext p11-kit-dev"
    1.24 -
    1.25 -DEPENDS_arm="nettle libgpg-error ncurses readline zlib gcc-lib-base \
    1.26 -libgnutls libcrypto libtasn1"
    1.27 +BUILD_DEPENDS="nettle-dev libtasn1-dev libunistring-dev gettext libcrypto-dev \
    1.28 +libidn-dev unbound-dev p11-kit-dev"
    1.29  BUILD_DEPENDS_arm="libtasn1-dev ncurses-dev readline-dev nettle-dev \
    1.30  libgpg-error-dev libgcrypt-dev libcrypto-dev gmp-dev lzip"
    1.31 -
    1.32  SPLIT="libgnutls gnutls-dev"
    1.33  
    1.34 -# Handle SliTaz arch.
    1.35 -case "$SLITAZ_ARCH" in
    1.36 -	arm*) DEPENDS=$DEPENDS_arm ;;
    1.37 -esac
    1.38 -
    1.39 -# Handle cross compilation.
    1.40 -case "$ARCH" in
    1.41 -	arm*)
    1.42 -		BUILD_DEPENDS=$BUILD_DEPENDS_arm
    1.43 -		ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
    1.44 -		--without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \
    1.45 -		--with-zlib" ;;
    1.46 -esac
    1.47 -
    1.48  # Rules to configure and make the package.
    1.49  compile_rules()
    1.50  {
    1.51 +	# Handle cross compilation.
    1.52 +	case "$ARCH" in
    1.53 +		arm*)
    1.54 +			ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
    1.55 +			--without-p11-kit --disable-rpath --with-libgcrypt --disable-guile \
    1.56 +			--with-zlib" ;;
    1.57 +	esac
    1.58 +
    1.59  	./configure \
    1.60  		--with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
    1.61  		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    1.62 @@ -50,5 +40,28 @@
    1.63  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.64  genpkg_rules()
    1.65  {
    1.66 -	copy bin/
    1.67 +	case $PACKAGE in
    1.68 +		gnutls)
    1.69 +			copy bin/
    1.70 +			DEPENDS="cacerts gmp libffi libgnutls libidn libtasn1 libunistring \
    1.71 +			nettle p11-kit zlib"
    1.72 +			DEPENDS_arm="nettle libgpg-error ncurses readline zlib \
    1.73 +			gcc-lib-base libgnutls libcrypto libtasn1"
    1.74 +			case $ARCH in
    1.75 +				arm*) DEPENDS=$DEPENDS_arm;;
    1.76 +			esac
    1.77 +			;;
    1.78 +		libgnutls)
    1.79 +			copy *.so*
    1.80 +			CAT="security|shared libraries"
    1.81 +			DEPENDS="cacerts gmp libidn libtasn1 libunistring nettle p11-kit \
    1.82 +			unbound zlib"
    1.83 +			;;
    1.84 +		*-dev)
    1.85 +			copy @dev
    1.86 +			DEPENDS="gnutls libgnutls gmp-dev libcrypto-dev libffi-dev \
    1.87 +			libidn-dev libtasn1-dev libunistring-dev nettle-dev p11-kit-dev \
    1.88 +			unbound-dev zlib-dev"
    1.89 +			;;
    1.90 +	esac
    1.91  }