wok-6.x annotate gnutls/receipt @ rev 25358

updated tinyproxy (1.10.0 -> 1.11.1)
author Hans-G?nter Theisgen
date Wed Jul 27 07:50:39 2022 +0100 (2022-07-27)
parents af8d823a3077
children
rev   line source
pascal@2502 1 # SliTaz package receipt.
erjo@180 2
erjo@180 3 PACKAGE="gnutls"
Hans-G?nter@22867 4 VERSION="3.6.12"
erjo@180 5 CATEGORY="security"
Hans-G?nter@22867 6 SHORT_DESC="GNU Transport Layer Security Library."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22867 9 WEB_SITE="https://www.gnutls.org/"
Hans-G?nter@22867 10
Hans-G?nter@22868 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@22868 12 WGET_URL="https://www.gnupg.org/ftp/gcrypt/gnutls/v${VERSION%.*}/$TARBALL"
Hans-G?nter@22867 13
Hans-G?nter@22867 14 SUGGESTED="cacerts"
Hans-G?nter@22867 15 DEPENDS="gcc-lib-base libcrypto libgnutls libgpg-error
Hans-G?nter@22867 16 libtasn1 libunistring ncurses nettle readline zlib"
Hans-G?nter@22867 17 BUILD_DEPENDS="gmp-dev libcrypto-dev libgcrypt-dev libgpg-error-dev libtasn1-dev
Hans-G?nter@22868 18 libunistring-dev ncurses-dev nettle-dev readline-dev"
Hans-G?nter@22867 19
pankso@16258 20 HOST_ARCH="i486 arm"
erjo@180 21
pankso@16258 22 # Handle SliTaz arch.
pankso@16258 23 case "$SLITAZ_ARCH" in
pankso@16258 24 i?86) DEPENDS="$DEPENDS p11-kit" ;;
pankso@16258 25 esac
pankso@16258 26
pankso@16258 27 # Handle cross compilation.
pankso@16258 28 case "$ARCH" in
pankso@16258 29 i?86)
psychomaniak@18166 30 BUILD_DEPENDS="$BUILD_DEPENDS p11-kit-dev cacerts" ;;
pankso@16258 31 arm*)
pankso@16258 32 ARCH_ARGS="--with-libgcrypt-prefix=/cross/$ARCH/sysroot/usr \
pankso@16258 33 --without-p11-kit --disable-rpath" ;;
pankso@16258 34 esac
slaxemulator@11295 35
pascal@24445 36 # What is the latest version available today?
pascal@24445 37 current_version()
pascal@24445 38 {
pascal@24445 39 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24445 40 sed '/GnuTLS [0-9]/!d;s|.*TLS ||;s|<.*||' | sort -Vr | sed q
pascal@24445 41 }
pascal@24445 42
erjo@180 43 # Rules to configure and make the package.
erjo@180 44 compile_rules()
erjo@180 45 {
Hans-G?nter@22867 46 # 3.6.12 unrecognised:
Hans-G?nter@22867 47 # --with-libgcrypt
Hans-G?nter@22867 48 # --with-zlib
Hans-G?nter@22867 49
Hans-G?nter@24968 50 # Disabled GOST support to compile with nettle-373
Hans-G?nter@24968 51 # Is GOST support indispensable?
Hans-G?nter@22867 52 ./configure \
Hans-G?nter@24968 53 --disable-gost \
pankso@16258 54 --disable-guile \
psychomaniak@18166 55 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
Hans-G?nter@24968 56 $CONFIGURE_ARGS $ARCH_ARGS &&
Hans-G?nter@22867 57 make &&
Hans-G?nter@22867 58 make install
erjo@180 59 }
erjo@180 60
erjo@180 61 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@180 62 genpkg_rules()
erjo@180 63 {
erjo@11631 64 mkdir -p $fs/usr
Hans-G?nter@22867 65 cp -a $install/usr/bin $fs/usr
erjo@180 66 }