36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
|
# Maintainer: Future Linux Team <futurelinux@163.com>
|
||
|
|
||
|
pkgname=gnutls
|
||
|
pkgver=3.8.5
|
||
|
pkgrel=1
|
||
|
pkgdesc="A library which provides a secure layer over a reliable transport layer"
|
||
|
arch=('x86_64')
|
||
|
url="https://www.gnutls.org/"
|
||
|
license=('GPL')
|
||
|
depends=('glibc' 'gcc-libs' 'gmp' 'libtasn1' 'readline' 'zlib' 'nettle' 'libp11-kit'
|
||
|
'libidn2' 'zstd' 'libunistring' 'brotli')
|
||
|
options=('!zipman')
|
||
|
source=(https://www.gnupg.org/ftp/gcrypt/${pkgname}/v${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
|
||
|
sha256sums=(66269a2cfe0e1c2dabec87bdbbd8ab656f396edd9a40dd006978e003cfa52bfc)
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
${CONFIGURE} \
|
||
|
--with-idn \
|
||
|
--with-brotli \
|
||
|
--with-zstd \
|
||
|
--enable-openssl-compatibility \
|
||
|
--with-default-trust-store-pkcs11="pkcs11:" \
|
||
|
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||
|
|
||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
make DESTDIR=${pkgdir} install
|
||
|
}
|