diff options
author | Schala | 2016-08-18 23:14:59 -0700 |
---|---|---|
committer | Schala | 2016-08-18 23:14:59 -0700 |
commit | b093d370f3b9b27af3315396aaa9ea4fd1510851 (patch) | |
tree | c90c9951f8d773a3220242cd0fca190ea82e2a9e | |
parent | 17d6893fad6455d9eadae990c359cf4ad2af39ff (diff) | |
download | aur-b093d370f3b9b27af3315396aaa9ea4fd1510851.tar.gz |
keep EXEs
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 8 deletions
@@ -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 @@ -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 } |