summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2016-08-18 23:14:59 -0700
committerSchala2016-08-18 23:14:59 -0700
commitb093d370f3b9b27af3315396aaa9ea4fd1510851 (patch)
treec90c9951f8d773a3220242cd0fca190ea82e2a9e
parent17d6893fad6455d9eadae990c359cf4ad2af39ff (diff)
downloadaur-b093d370f3b9b27af3315396aaa9ea4fd1510851.tar.gz
keep EXEs
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 7 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c2805da9d7c..5d1b9cfaf760 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Jul 21 05:27:21 UTC 2016
+# Fri Aug 19 06:14:13 UTC 2016
pkgbase = mingw-w64-libgcrypt
pkgdesc = General purpose cryptographic library based on the code from GnuPG (mingw-w64)
pkgver = 1.7.2
- pkgrel = 1
+ pkgrel = 2
url = http://www.gnupg.org
arch = any
license = LGPL
diff --git a/PKGBUILD b/PKGBUILD
index 7cc227a7ed6c..b4aed1449082 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=mingw-w64-libgcrypt
pkgver=1.7.2
-pkgrel=1
+pkgrel=2
pkgdesc="General purpose cryptographic library based on the code from GnuPG (mingw-w64)"
arch=("any")
url="http://www.gnupg.org"
@@ -43,11 +43,10 @@ package() {
for _arch in ${_architectures}; do
cd "$srcdir/libgcrypt-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir" install -j1
- rm -r "$pkgdir"/usr/${_arch}/share
- rm "$pkgdir"/usr/${_arch}/bin/*.exe
- rm "$pkgdir"/usr/${_arch}/lib/*.def
- ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
- ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
+ find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \;
+ find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
+ rm "$pkgdir/usr/${_arch}/share/info/dir"
done
}