Streamline command for stripping archives

This commit is contained in:
Martchus 2025-07-22 23:24:48 +02:00
parent 4459024aef
commit 6bbbd62d74
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = mingw-w64-openssl
pkgdesc = The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (mingw-w64)
pkgver = 3.5.1
pkgrel = 1
pkgrel = 2
url = https://www.openssl.org
arch = any
license = Apache-2.0

View file

@ -9,7 +9,7 @@ _architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgname=mingw-w64-openssl
pkgver=${_pkgver/[a-z]/.${_pkgver//[0-9.]/}}
pkgrel=1
pkgrel=2
pkgdesc="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (mingw-w64)"
arch=('any')
url='https://www.openssl.org'
@ -69,7 +69,7 @@ package() {
install -m644 ms/applink.c "${pkgdir}/usr/${_arch}/include/openssl/"
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
find "${pkgdir}/usr/${_arch}" -name '*.a' -exec ${_arch}-strip -g {} \;
done
}