2006-02-23 15:26:10 +00:00
|
|
|
# Description: A library that provides a secure layer over a reliable transport layer
|
2020-06-06 21:55:11 +10:00
|
|
|
# URL: https://gnutls.org
|
2023-08-27 17:47:38 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: libunistring nettle p11-kit
|
|
|
|
# Optional: brotli libidn2
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=gnutls
|
2023-08-07 16:23:26 +02:00
|
|
|
version=3.8.1
|
2023-08-27 17:47:38 +02:00
|
|
|
release=2
|
2019-12-09 22:52:51 +11:00
|
|
|
source=(https://www.gnupg.org/ftp/gcrypt/$name/v${version:0:3}/$name-$version.tar.xz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2023-08-27 17:47:38 +02:00
|
|
|
cd $name-$version
|
2011-02-28 14:38:53 +01:00
|
|
|
|
|
|
|
|
2023-08-27 17:47:38 +02:00
|
|
|
prt-get isinst brotli && PKGMK_GNUTLS+=' --with-brotli'
|
|
|
|
prt-get isinst libidn2 && PKGMK_GNUTLS+=' --with-idn'
|
2011-02-28 14:38:53 +01:00
|
|
|
|
2023-08-27 17:47:38 +02:00
|
|
|
./configure $PKGMK_GNUTLS \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-default-trust-store-pkcs11="pkcs11:" \
|
|
|
|
--enable-openssl-compatibility \
|
|
|
|
--with-zstd \
|
|
|
|
--disable-guile \
|
|
|
|
--disable-static \
|
|
|
|
--without-tpm \
|
|
|
|
--without-tpm2
|
|
|
|
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm -r $PKG/usr/share/{doc,info,locale}
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|