diff options
-rw-r--r-- | libre/libgpg-error-static/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libre/libgpg-error-static/PKGBUILD b/libre/libgpg-error-static/PKGBUILD new file mode 100644 index 000000000..88de0714f --- /dev/null +++ b/libre/libgpg-error-static/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# based of libgpg-error + +_pkgname=libgpg-error +pkgname=libgpg-error-static +pkgver=1.21 +pkgrel=1 +pkgdesc="Support library for libgcrypt (static libraries only)" +arch=(i686 x86_64 armv7h) +url="http://www.gnupg.org" +license=('LGPL') +depends=('libgpg-error') +options=('staticlibs') +source=(ftp://ftp.gnupg.org/gcrypt/libgpg-error/${_pkgname}-${pkgver}.tar.bz2{,.sig}) + #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgpg-error/${_pkgname}-${pkgver}.tar.bz2) +options=('staticlibs') +# https://www.gnupg.org/download/integrity_check.html +sha1sums=('ef1dfb2f8761f019091180596e9e638d8cc37513' + 'SKIP') +validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}/" install + + # remove conflicting files + rm -vr ${pkgdir}/usr/{bin,include,share} + rm -v ${pkgdir}/usr/lib/lib*.so* +} |