diff options
author | Schala | 2016-09-16 00:21:39 -0700 |
---|---|---|
committer | Schala | 2016-09-16 00:21:39 -0700 |
commit | 841d8506fe7c5abedb59ad72ae7097959715c52b (patch) | |
tree | af89a406d627bf7ad8de43814de27ed060482fff | |
download | aur-841d8506fe7c5abedb59ad72ae7097959715c52b.tar.gz |
init
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0722b55e17a0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Fri Sep 16 07:20:51 UTC 2016 +pkgbase = mingw-w64-stormlib + pkgdesc = A C/C++ API to read and write MPQ files with support for merged archives, patch MPQs and more. (mingw-w64) + pkgver = 9.20 + pkgrel = 1 + url = http://www.zezula.net/en/mpq/stormlib.html + arch = any + license = MIT + makedepends = mingw-w64-cmake + depends = mingw-w64-crt + options = staticlibs + options = !strip + options = !buildflags + source = https://github.com/ladislav-zezula/StormLib/archive/v9.20.tar.gz + sha256sums = fdfc7d0b444cd5d540c5732155a7c5011c573e90029947198f651aec93db4887 + +pkgname = mingw-w64-stormlib + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f356947551cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.gz +*.tar diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3d1ea7fadafb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=mingw-w64-stormlib +pkgver=9.20 +pkgrel=1 +arch=(any) +pkgdesc="A C/C++ API to read and write MPQ files with support for merged archives, patch MPQs and more. (mingw-w64)" +license=("MIT") +depends=(mingw-w64-crt) +makedepends=(mingw-w64-cmake) +options=(staticlibs !strip !buildflags) +url="http://www.zezula.net/en/mpq/stormlib.html" +source=("https://github.com/ladislav-zezula/StormLib/archive/v$pkgver.tar.gz") +sha256sums=('fdfc7d0b444cd5d540c5732155a7c5011c573e90029947198f651aec93db4887') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd StormLib-$pkgver + for _arch in ${_architectures}; do + unset LDFLAGS + + mkdir "build-${_arch}" && pushd "build-${_arch}" + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DWITH_STATIC=ON \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/StormLib-$pkgver/build-${_arch}" + 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 + done +} |