diff options
author | Alexandre Bique | 2016-07-07 16:41:57 +0200 |
---|---|---|
committer | Alexandre Bique | 2016-07-07 16:41:57 +0200 |
commit | 7e4a9ee09e158793c4bd6433e0e86160e255f53a (patch) | |
tree | 3345df471c6431506067d1cc556d907ebbe792f0 | |
download | aur-7e4a9ee09e158793c4bd6433e0e86160e255f53a.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..02eecdf9d89b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-libarchive + pkgdesc = Multi-format archive and compression library (mingw-w64) + pkgver = 3.2.1 + pkgrel = 1 + url = http://www.libarchive.org/ + arch = any + license = BSD + makedepends = mingw-w64-cmake + makedepends = ninja + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = http://www.libarchive.org/downloads/libarchive-3.2.1.tar.gz + md5sums = afa257047d1941a565216edbf0171e72 + +pkgname = mingw-w64-libarchive + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..53c816bbdaec --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +pkgname=mingw-w64-libarchive +pkgver=3.2.1 +pkgrel=1 +pkgdesc="Multi-format archive and compression library (mingw-w64)" +arch=('any') +url="http://www.libarchive.org/" +license=('BSD') +makedepends=('mingw-w64-cmake' 'ninja') +depends=('mingw-w64-crt') +options=('!strip' '!buildflags' 'staticlibs') +source=("http://www.libarchive.org/downloads/libarchive-3.2.1.tar.gz") +md5sums=('afa257047d1941a565216edbf0171e72') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + unset LDFLAGS + cd "$srcdir/libarchive-$pkgver/" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + .. + ninja + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/libarchive-$pkgver/build-${_arch}" + ninja DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |