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