diff options
author | Michel Zou | 2020-12-06 19:43:09 +0100 |
---|---|---|
committer | Michel Zou | 2020-12-06 19:43:09 +0100 |
commit | e9d1a56f681baefea5936e4078ac0dca033eff3e (patch) | |
tree | 91dc17f7e5b9f8a106866cf5c43d946e6e54c225 | |
parent | 1af50d41f0a932b32c31c0a4eb3d53acea50869c (diff) | |
download | aur-e9d1a56f681baefea5936e4078ac0dca033eff3e.tar.gz |
exe
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 12 insertions, 25 deletions
@@ -1,5 +1,3 @@ -# Generated by mksrcinfo v8 -# Sun Mar 26 23:17:40 UTC 2017 pkgbase = mingw-w64-libsquish pkgdesc = DXT compression library (mingw-w64) pkgver = 1.15 @@ -8,10 +6,7 @@ pkgbase = mingw-w64-libsquish arch = any license = MIT makedepends = mingw-w64-cmake - makedepends = mingw-w64-libpng - depends = mingw-w64-crt - optdepends = mingw-w64-libpng - options = !libtool + depends = mingw-w64-libpng options = !strip options = !buildflags options = staticlibs @@ -5,10 +5,9 @@ pkgdesc="DXT compression library (mingw-w64)" arch=(any) url="http://sourceforge.net/projects/libsquish" license=("MIT") -makedepends=(mingw-w64-cmake mingw-w64-libpng) -depends=(mingw-w64-crt) -options=(!libtool !strip !buildflags staticlibs) -optdepends=(mingw-w64-libpng) +makedepends=(mingw-w64-cmake) +depends=(mingw-w64-libpng) +options=(!strip !buildflags staticlibs) source=("http://downloads.sourceforge.net/libsquish/libsquish-$pkgver.tgz" "gcc440.patch" "0001-fix-install.patch") @@ -25,19 +24,12 @@ prepare() { build() { for _arch in ${_architectures}; do - unset LDFLAGS - mkdir "build-${_arch}-static" && pushd "build-${_arch}-static" - ${_arch}-cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_SHARED_LIBS=OFF \ - .. + mkdir -p build-${_arch}-static && pushd build-${_arch}-static + ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .. make popd - mkdir "build-${_arch}-shared" && pushd "build-${_arch}-shared" - ${_arch}-cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_SQUISH_EXTRA=ON \ - .. + mkdir -p build-${_arch}-shared && pushd build-${_arch}-shared + ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SQUISH_EXTRA=ON .. make popd done @@ -45,12 +37,12 @@ build() { package() { for _arch in ${_architectures}; do - cd "${srcdir}/build-${_arch}-static" + cd "${srcdir}/build-${_arch}-static" make DESTDIR="$pkgdir" install cd "${srcdir}/build-${_arch}-shared" make DESTDIR="$pkgdir" install - 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 + rm "${pkgdir}"/usr/${_arch}/bin/*.exe + ${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/bin/"*.dll + ${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a done } |