aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nanomsg/APKBUILD
blob: 0df4a0c77ed361cee55fbcdeac0a741282c4ce83 (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
37
38
39
40
41
42
43
44
45
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nanomsg
pkgver=0.8
_pkgver=$pkgver-beta
pkgrel=0
pkgdesc="A socket library that provides several common communication patterns"
url="http://nanomsg.org/"
arch="all"
license="MIT"
depends=""
depends_dev="asciidoc xmlto"
makedepends="$depends_dev"
install=""
options="libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://github.com/nanomsg/nanomsg/releases/download/$_pkgver/$pkgname-$_pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$_pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix="/usr" \
		--enable-doc="yes"
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install
	install -Dm644 "${srcdir}/nanomsg-${pkgver}-beta/COPYING" "${pkgdir}/usr/share/licenses/$pkgname/COPYING"
}

md5sums="bfccbcd8c5ea8ccad4ef7ade558eebea  nanomsg-0.8-beta.tar.gz"
sha256sums="75ce0c68a50cc68070d899035d5bb1e2bd75a5e01cbdd86ba8af62a84df3a947  nanomsg-0.8-beta.tar.gz"
sha512sums="457e99e2b2568370bf052a20e2abb38faad9afa9019d38aa35df6cf49d1d3f50e3a0b26a64089e823b7d907041e8069c99a06706678b070a26e0cbe2e26588d2  nanomsg-0.8-beta.tar.gz"