# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=zeromq pkgver=4.1.3 pkgrel=3 pkgdesc="The ZeroMQ messaging library and tools" url="http://www.zeromq.org/" arch="all" license="LGPLv3+" depends= makedepends="util-linux-dev libsodium-dev perl python asciidoc xmlto autoconf automake" install= subpackages="$pkgname-dev $pkgname-doc libzmq" source="http://download.zeromq.org/zeromq-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" # return code from sodium_init is todo in curve_client.cpp & curve_server.cpp export CXXFLAGS="$CXXFLAGS -Wno-unused-result" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-libsodium \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } libzmq() { pkgdesc="The ZeroMQ messaging library" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libzmq.so.* "$subpkgdir"/usr/lib/ } md5sums="d0824317348cfb44b8692e19cc73dc3a zeromq-4.1.3.tar.gz" sha256sums="61b31c830db377777e417235a24d3660a4bcc3f40d303ee58df082fcd68bf411 zeromq-4.1.3.tar.gz" sha512sums="2c993d18ea44e1cba890e024176af65b85b842ca4f8a22d319be4ace8388ab8828dd706b065f02754025bf271b1d7aa878c3f6655878248f7826452cb2a6134c zeromq-4.1.3.tar.gz"