core/zeromq/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/zeromq
pkgname=zeromq
2018-01-22 07:42:57 +08:00
pkgver=4.2.1
pkgrel=1
2015-12-01 04:22:49 +08:00
pkgdesc="Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ."
arch=('x86_64')
url="http://www.zeromq.org"
license=('LGPL')
2015-12-01 04:22:49 +08:00
depends=('gcc-libs' 'util-linux' 'libsodium' 'libpgm')
makedepends=('python2')
options=('staticlibs')
2018-01-22 07:42:57 +08:00
source=("https://github.com/zeromq/libzmq/releases/download/v$pkgver/zeromq-$pkgver.tar.gz"
"zmq.hpp.$pkgver::https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp")
md5sums=('820cec2860a72c3257881a394d83bfc0'
'4a81b2afcb6ce78e6e8198c332e20334')
2015-12-01 04:22:49 +08:00
prepare() {
# Needed for new libsodium
sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $pkgname-$pkgver/configure
2018-01-22 07:42:57 +08:00
cp zmq.hpp.$pkgver zmq.hpp
2015-12-01 04:22:49 +08:00
}
build() {
cd "$srcdir/$pkgname-$pkgver"
2015-12-01 04:22:49 +08:00
./configure prefix=/usr \
--with-pgm \
--with-libsodium \
--with-documentation \
--enable-static
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
}