summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-07-26 22:01:07 -0400
committerAndrew Sun2018-07-26 22:01:07 -0400
commitf3c3629ad0d16097aa98d9086d320d00dc25789d (patch)
tree111e44ae7169ada56427b9b8b75f42ace511b35f
parent1a44c19af1a0308e9e9c67a0420ba12d05c06a81 (diff)
downloadaur-f3c3629ad0d16097aa98d9086d320d00dc25789d.tar.gz
mingw-w64-libtre-git: strip executables
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 789c7ec9275f..05ad41033e18 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mingw-w64-libtre-git
pkgdesc = The approximate regex matching library and agrep command line tool (mingw-w64)
pkgver = r128.6fb7206
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/laurikari/tre
arch = any
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index f69db58f1b5c..f24eef62e019 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mingw-w64-libtre-git
pkgver=r128.6fb7206
-pkgrel=1
+pkgrel=2
arch=(any)
pkgdesc="The approximate regex matching library and agrep command line tool (mingw-w64)"
depends=('mingw-w64-crt' 'mingw-w64-gettext')
@@ -52,6 +52,7 @@ package() {
for _arch in ${_architectures}; do
cd "${srcdir}/libtre/build-${_arch}"
make DESTDIR="$pkgdir" install
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
install -Dm644 "${srcdir}/libtre/LICENSE" "${pkgdir}/usr/${_arch}/share/licenses/libtre/LICENSE"