blob: 9c33c29d37c60f2560bfbefbfa1b92185de61331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nanomsg
pkgver=1.1.3
pkgrel=0
pkgdesc="Socket library that provides several common communication patterns"
url="http://nanomsg.org"
arch="all !armhf" # armhf: segfaults in 2 tests
license="MIT"
depends_dev="asciidoctor xmlto"
makedepends="$depends_dev 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 .
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="3fcb7c635dbbc81b2903e0c2b5f94ff4a40504e7a6847b4a889800f7ab7cfbaf37d0764c26f5a47b4b4a1facfd6a176e3f8bddd217d7b26fa5c1b3c96bab7d62 nanomsg-1.1.3.tar.gz"
|