core/zeromq/PKGBUILD
2015-02-23 10:09:58 +00:00

30 lines
961 B
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/zeromq
pkgname=zeromq
pkgver=4.0.5
pkgrel=1
pkgdesc="Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ."
arch=('x86_64')
url="http://www.zeromq.org"
license=('LGPL')
depends=('gcc-libs' 'util-linux' 'libsodium')
makedepends=('python2')
options=('staticlibs')
source=(http://download.zeromq.org/$pkgname-$pkgver.tar.gz
https://raw.githubusercontent.com/zeromq/cppzmq/1f05e0d11/zmq.hpp)
md5sums=('73c39f5eb01b9d7eaf74a5d899f1d03d'
'6a7b5e04ff4a55c75683aa9fa7ec8e5e')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure prefix=/usr --with-pgm --with-libsodium
sed -i 's/python$/&2/' foreign/openpgm/build-staging/openpgm/pgm/{Makefile,version_generator.py}
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
}