blob: cb224ee8b26732db4d1889c3990a86b0b11133bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=gnutls-git
pkgver=3.8.7.r57.gd2f7c6e4c
pkgrel=1
pkgdesc="A secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them"
arch=('i686' 'x86_64')
url="https://www.gnutls.org/"
license=('LGPL-2.1-or-later AND GPL-3.0-or-later')
depends=('glibc' 'brotli' 'libidn2' 'liboqs' 'libtasn1' 'libunistring' 'nettle' 'p11-kit' 'readline' 'zlib' 'zstd')
makedepends=('git' 'autogen' 'gperf' 'gtk-doc' 'rsync' 'wget')
provides=("gnutls=$pkgver")
conflicts=('gnutls')
backup=('etc/gnutls/config'
'etc/modules-load.d/gnutls.conf')
options=('!zipman')
source=("git+https://gitlab.com/gnutls/gnutls.git")
sha256sums=('SKIP')
pkgver() {
cd "gnutls"
git describe --long --tags | sed 's/^gnutls_//;s/\([^-]*-g\)/r\1/;s/[_-]/./g'
}
build() {
cd "gnutls"
./bootstrap
./configure \
--prefix="/usr" \
--disable-full-test-suite \
--enable-openssl-compatibility \
--with-default-trust-store-pkcs11="pkcs11:" \
--with-liboqs
make
}
check() {
cd "gnutls"
#make check
}
package() {
cd "gnutls"
make DESTDIR="$pkgdir" install
# lots of .png files are put into infodir and are gzipped by makepkg! this needs to be fixed by using !zipman
# gzip -9 all files in infodir and manpages manually
find "$pkgdir/usr/share/info" -name '*.info*' -exec gzip -n -9 {} \;
find "$pkgdir/usr/share/man" -exec gzip -n -9 {} \;
}
|