opt/gnutls/Pkgfile

34 lines
880 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: A library that provides a secure layer over a reliable transport layer
# 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 16:26:10 +01:00
name=gnutls
2024-01-16 21:06:35 +01:00
version=3.8.3
2023-11-18 12:53:24 +01:00
release=1
2019-12-09 12:52:51 +01:00
source=(https://www.gnupg.org/ftp/gcrypt/$name/v${version:0:3}/$name-$version.tar.xz)
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
}