# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=nanomsg pkgver=1.2 pkgrel=2 pkgdesc="Socket library that provides several common communication patterns" url="https://nanomsg.org" arch="all !armhf !armv7" # armhf: segfaults in 2 tests license="MIT" makedepends=" asciidoctor cmake samurai xmlto " subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/nanomsg/nanomsg/archive/$pkgver.tar.gz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { ctest --test-dir build --output-on-failure -j${JOBS:-2} } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 377b3a0b4be6d6decd2711ff84ac1855ae0a298e7557dbe4b7d881c2a76f4e521671b47987b924c434afdad7ff1dfebb50982c8c0afca9b44682c898510d4c92 nanomsg-1.2.tar.gz "