Remove doc/man from mingw-w64-pcre2

This commit is contained in:
Martchus 2020-10-21 11:23:19 +02:00
parent 61288ad1c6
commit 72623943f6
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
pkgname=mingw-w64-pcre2
pkgver=10.35
pkgrel=1
pkgrel=2
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version (mingw-w64)'
arch=('any')
url='https://www.pcre.org/'
@ -41,6 +41,7 @@ package() {
for _arch in ${_architectures}; do
cd "${srcdir}/${pkgname##mingw-w64-}-$pkgver/build-${_arch}"
make DESTDIR="$pkgdir" install
rm -r "$pkgdir/usr/${_arch}/share/"{man,doc}
find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \;
find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g