aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nanomsg/APKBUILD
blob: 2cc382aa75afd8fe970c3d399a268961cf32dc29 (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.5
_pkgver=$pkgver-beta
pkgrel=1
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="http://download.nanomsg.org/nanomsg-$_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"
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="65a79eabfc33e7a55e2293e12c367f73  nanomsg-0.5-beta.tar.gz"
sha256sums="13bff7ae8f31957722ee62d50504ce1a0c590da908f8566f997e3e521abb089f  nanomsg-0.5-beta.tar.gz"
sha512sums="64bb658d80e94ec43e77b7a7c53a29e9b9cd02a7539e9c108b0bdfad8179af4202e11dcfdcb8400e3334931f61e59066fafe06c9df3bb4628dde6a047139ffe5  nanomsg-0.5-beta.tar.gz"