summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-18 12:52:31 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-18 12:53:23 -0300
commit906e01119e6792354d9701d874930e7d570505df (patch)
treeeb71f1e7daf3aff01b2462600173c92011089724 /libre
parentc1169c2a7aba84acf9aff2f61dd159343ec3679b (diff)
downloadabslibre-906e01119e6792354d9701d874930e7d570505df.tar.gz
abslibre-906e01119e6792354d9701d874930e7d570505df.tar.bz2
abslibre-906e01119e6792354d9701d874930e7d570505df.zip
gnutls-static: add new package to [libre]
Diffstat (limited to 'libre')
-rw-r--r--libre/gnutls-static/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/libre/gnutls-static/PKGBUILD b/libre/gnutls-static/PKGBUILD
new file mode 100644
index 000000000..d381417fc
--- /dev/null
+++ b/libre/gnutls-static/PKGBUILD
@@ -0,0 +1,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*
+}