blob: d381417fc69f05464326e31b6146ed9460e97530 (
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
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of gnutls
_pkgname=gnutls
pkgname=gnutls-static
pkgver=3.4.11
pkgrel=1
pkgdesc="A library which provides a secure layer over a reliable transport layer (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL3' 'LGPL2.1')
url="http://www.gnutls.org/"
options=('staticlibs')
depends=('gcc-libs-static' 'libtasn1-static' 'readline-static' 'nettle-static' 'p11-kit-static' 'gnutls')
source=(ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/${_pkgname}-${pkgver}.tar.xz{,.sig})
md5sums=('4da148b5a0048aaac4961e2d9ba95798'
'SKIP')
validpgpkeys=('0424D4EE81A0E3D119C6F835EDA21E94B565716F'
'1F42418905D8206AA754CCDC29EE58B996865171')
# "Simon Josefsson <simon@josefsson.org>"
# "Nikos Mavrogiannopoulos <nmav@gnutls.org>
build() {
cd ${_pkgname}-${pkgver}
# disable libidn for security reasons:
# http://lists.gnupg.org/pipermail/gnutls-devel/2015-May/007582.html
./configure --prefix=/usr \
--with-zlib \
--enable-static \
--without-idn \
--enable-guile --with-guile-site-dir=no \
--with-default-trust-store-pkcs11="pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit"
make
}
check() {
cd ${_pkgname}-${pkgver}
make check
}
package() {
cd ${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
# remove conflicting files
rm -vr ${pkgdir}/usr/{bin,include,lib/pkgconfig,share}
rm -v ${pkgdir}/usr/lib/guile/*/*.so*
rm -v ${pkgdir}/usr/lib/lib*.so*
}
|