aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nanomsg/APKBUILD
blob: 0c7110eaa58ee0267b945a307492c046ed3505b2 (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.0.0
pkgrel=0
pkgdesc="A socket library that provides several common communication patterns"
url="http://nanomsg.org/"
arch="all"
license="MIT"
depends=""
depends_dev="asciidoctor xmlto"
makedepends="$depends_dev cmake"
install=""
options="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib .
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

md5sums="6f56ef28c93cee644e8c4aaaef7cfb55  nanomsg-1.0.0.tar.gz"
sha256sums="24afdeb71b2e362e8a003a7ecc906e1b84fd9f56ce15ec567481d1bb33132cc7  nanomsg-1.0.0.tar.gz"
sha512sums="06fc4eadac29439024bd24230c73f43ddc46e6b6848ad75952b67bf301066be5752a844173597c1b42e55c1ebb66a2d2cb7693e4cbfc07584b4398597cbc9200  nanomsg-1.0.0.tar.gz"