wok view gnutls/receipt @ rev 23837

Up freetype (2.10.2), git (2.26.2), glpi (9.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 10:44:24 2020 +0000 (2020-06-01)
parents 360e0047b1bd
children ae73fb35f0cf
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 # Rules to configure and make the package.
37 compile_rules()
38 {
39 # 3.6.12 unrecognised:
40 # --with-libgcrypt
41 # --with-zlib
43 ./configure \
44 --with-libgcrypt \
45 --with-zlib \
46 --disable-guile \
47 --with-default-trust-store-file="/etc/ssl/ca-bundle.crt" \
48 $CONFIGURE_ARGS ${ARCH_ARGS} &&
49 make &&
50 make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr
57 cp -a $install/usr/bin $fs/usr
58 }