aboutsummaryrefslogtreecommitdiffstats
path: root/community/czmq/APKBUILD
blob: 7bd9089d395d5951ca8221e5d7d351a07c20cc53 (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: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=czmq
pkgver=4.0.2
pkgrel=0
pkgdesc="High-level C binding for ZeroMQ"
url="http://czmq.zeromq.org/"
arch="all"
license="MPL-2.0"
makedepends="cmake zeromq-dev"
subpackages="$pkgname-dev"
source="https://github.com/zeromq/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	# Note: One test segfaults when built with MinSizeRel (-Os).
	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE=ON
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="f4172f0735d69c779d407e7112ceb1dd160a2139f68c504e1fafde2aa899993512d40afe72a0bc4d5dac196dfe0aee4e59defd6d8c0c44299f6e7c74294b0b35  czmq-4.0.2.tar.gz"