# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=zeromq pkgver=4.1.2 pkgrel=0 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" ./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 rm -f "$pkgdir"/usr/lib/*.la } libzmq() { pkgdesc="The ZeroMQ messaging library" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libzmq.so.* "$subpkgdir"/usr/lib/ } md5sums="159c0c56a895472f02668e692d122685 zeromq-4.1.2.tar.gz" sha256sums="f9162ead6d68521e5154d871bac304f88857308bb02366b81bb588497a345927 zeromq-4.1.2.tar.gz" sha512sums="69f8992dabd1d2ae90b0f8fadf39d89eac054f6593e175432e35f0f8edd224bc588b015280ee2e9dd34c55269dd9daf4a4f275e547535b2a24ea0cb9617b2e80 zeromq-4.1.2.tar.gz"