summaryrefslogtreecommitdiff
path: root/libre/libtasn1-static/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/libtasn1-static/PKGBUILD')
-rw-r--r--libre/libtasn1-static/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/libre/libtasn1-static/PKGBUILD b/libre/libtasn1-static/PKGBUILD
new file mode 100644
index 000000000..24a2ebb48
--- /dev/null
+++ b/libre/libtasn1-static/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libtasn1
+
+_pkgname=libtasn1
+pkgname=libtasn1-static
+pkgver=4.8
+pkgrel=1
+pkgdesc="The ASN.1 library used in GNUTLS (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+license=('GPL3' 'LGPL')
+url="http://www.gnu.org/software/libtasn1/"
+depends=('texinfo-static' 'libtasn1')
+options=('staticlibs')
+source=(http://ftp.gnu.org/gnu/libtasn1/${_pkgname}-${pkgver}.tar.gz{,.sig})
+md5sums=('9a6767705725544f2b86670dcfb34107'
+ 'SKIP')
+validpgpkeys=('1F42418905D8206AA754CCDC29EE58B996865171') #Nikos Mavrogiannopoulos <nmav@gnutls.org>
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ ./configure --prefix=/usr \
+ --with-packager=Parabola \
+ --with-packager-bug-reports="http://labs.parabola.nu/" \
+ --with-packager-version=${pkgver}-${pkgrel}
+ 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/lib*.so*
+}