testing/nanomsg: modernize

This commit is contained in:
Leo 2019-06-07 15:16:30 -03:00
parent b9a810e6ff
commit ec974c91c0

View File

@ -7,16 +7,13 @@ pkgdesc="Socket library that provides several common communication patterns"
url="http://nanomsg.org"
arch="all !armhf !armv7" # armhf: segfaults in 2 tests
license="MIT"
depends_dev="asciidoctor xmlto"
makedepends="$depends_dev cmake"
makedepends="asciidoctor xmlto cmake"
options="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nanomsg/nanomsg/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib .
@ -24,12 +21,10 @@ build() {
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}