# Template file for 'nng' pkgname=nng version=1.5.2 revision=1 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=on" short_desc="Nanomsg next-generation" maintainer="Adam Gausmann " license="MIT" homepage="https://github.com/nanomsg/nng" changelog="https://github.com/nanomsg/nng/releases" distfiles="https://github.com/nanomsg/nng/archive/refs/tags/v${version}.tar.gz" checksum=f8b25ab86738864b1f2e3128e8badab581510fa8085ff5ca9bb980d317334c46 do_check() { # nng.platform.resolver_test passes on host machine, # but fails in void-packages chroot cd ${cmake_builddir:=build} ctest -E 'nng\.platform\.resolver_test' } post_install() { vlicense LICENSE.txt } nng-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove "usr/include" vmove "usr/lib/cmake" vmove "usr/lib/*.so" } }