summaryrefslogtreecommitdiffstats
path: root/main/zeromq/APKBUILD
blob: 6715f0af979a74578dd1c097b36314d91551837a (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zeromq
pkgver=2.1.7
pkgrel=2
pkgdesc="The ZeroMQ messaging library and tools"
url="http://www.zeromq.org/"
arch="all"
license="LGPLv3+"
depends=
makedepends="util-linux-dev"
install=
subpackages="$pkgname-dev $pkgname-doc libzmq"
source="http://download.zeromq.org/zeromq-$pkgver.tar.gz"


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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.la
}

libzmq() {
	pkgdesc="The ZeroMQ messaging library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libzmq.so.* "$subpkgdir"/usr/lib/
}

md5sums="7d3120f8a8fb913a7e55c57c6eb024f3  zeromq-2.1.7.tar.gz"