diff options
author | Michel Zou | 2018-12-26 16:15:25 +0100 |
---|---|---|
committer | Michel Zou | 2018-12-26 16:15:25 +0100 |
commit | afb0f15301981c702644f11d0b3c470ffbbd7054 (patch) | |
tree | 1192436cab6ca6b0697c443b8eec186711ec3e1f | |
download | aur-afb0f15301981c702644f11d0b3c470ffbbd7054.tar.gz |
1.3.7
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1f57677167ea --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-zstd + pkgdesc = Zstandard - Fast real-time compression algorithm (mingw-w64) + pkgver = 1.3.7 + pkgrel = 1 + url = http://www.zstd.net/ + arch = any + license = BSD + license = GPL2 + makedepends = mingw-w64-cmake + depends = mingw-w64-zlib + depends = mingw-w64-xz + depends = mingw-w64-lz4 + options = staticlibs + options = !buildflags + options = !strip + source = https://github.com/facebook/zstd/releases/download/v1.3.7/zstd-1.3.7.tar.gz + sha256sums = 3277f236df0ca6edae01ae84e865470000c5a3484588fd5bc3d869877fd3573d + +pkgname = mingw-w64-zstd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0a6279bc9501 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ + +pkgname=mingw-w64-zstd +pkgver=1.3.7 +pkgrel=1 +pkgdesc="Zstandard - Fast real-time compression algorithm (mingw-w64)" +url="http://www.zstd.net/" +arch=('any') +license=('BSD' 'GPL2') +depends=('mingw-w64-zlib' 'mingw-w64-xz' 'mingw-w64-lz4') +makedepends=('mingw-w64-cmake') +options=('staticlibs' '!buildflags' '!strip') +source=("https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.gz") +sha256sums=('3277f236df0ca6edae01ae84e865470000c5a3484588fd5bc3d869877fd3573d') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd zstd-$pkgver + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake -DZSTD_BUILD_PROGRAMS=OFF ../build/cmake/ + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir"/zstd-${pkgver}/build-${_arch} + make install DESTDIR="$pkgdir" + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |