diff options
author | xantares | 2015-06-08 23:05:35 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:05:35 +0200 |
commit | 40ea1ce9a300f5cc2c4e3ea94443e154e718d992 (patch) | |
tree | c0039c643ff4931b1533499675834b2c20e71f3c /PKGBUILD | |
download | aur-40ea1ce9a300f5cc2c4e3ea94443e154e718d992.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4f38aeae9d4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ + +pkgname=mingw-w64-zeromq +pkgver=4.0.5 +pkgrel=1 +pkgdesc="Fast messaging system built on sockets, C and C++ bindings. aka 0MQ, ZMQ. (mingw-w64)" +arch=('any') +url="http://www.zeromq.org" +license=("LGPL") +depends=('mingw-w64-crt') +makedepends=('mingw-w64-configure') +options=('staticlibs' '!strip' '!buildflags') +source=("http://download.zeromq.org/zeromq-$pkgver.tar.gz") +md5sums=('73c39f5eb01b9d7eaf74a5d899f1d03d') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare () { + cd "${srcdir}/zeromq-${pkgver}" + #sed -i "s/libzmq_werror=\"yes\"/libzmq_werror=\"no\"/g" configure +} + +build() { + cd "${srcdir}/zeromq-${pkgver}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --disable-static + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/zeromq-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" install + rm "$pkgdir"/usr/${_arch}/bin/*.exe + rm -r "$pkgdir"/usr/${_arch}/share + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |