wok view gnutls/receipt @ rev 24742
updated libffcall (2.2 -> 2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:31:26 2022 +0100 (2022-03-16) |
parents | ae73fb35f0cf |
children | 1d4d40f846e6 |
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 ./configure \
51 --disable-guile \
52 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
53 $CONFIGURE_ARGS ${ARCH_ARGS} &&
54 make &&
55 make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr
62 cp -a $install/usr/bin $fs/usr
63 }