description="Fast messaging system built on sockets.  C and C++ bindings.  aka 0MQ, ZMQ"
url="http://www.zeromq.org"

license="MPL2"

packager="spiky <spiky@nutyx.org>"
contributors="Remy,Tnut"

makedepends=(util-linux libsodium asciidoc xmlto)

name=zeromq
version=4.3.5

source=(https://github.com/$name/libzmq/releases/download/v$version/$name-$version.tar.gz
        https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp)

build() {
cd $name-$version

sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure

./configure prefix=/usr --with-libsodium \
            --with-documentation --disable-static
make
make DESTDIR=$PKG install
install -Dm644 $SRC/zmq.hpp $PKG/usr/include/zmq.hpp

# Obsolet lib
rm $PKG/usr/lib/libzmq.la

install -Dm644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
