aboutsummaryrefslogtreecommitdiffstats
path: root/main/userspace-rcu/APKBUILD
blob: 660f8793cd0b3f8a446fe56492ab8147ce796a1b (plain) (blame)
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
46
47
48
49
50
51
52
53
# Contributor: Michael Jeanson <mjeanson@efficios.com>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=userspace-rcu
pkgver=0.12.1
pkgrel=0
pkgdesc="Userspace RCU (read-copy-update) library"
url="http://liburcu.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="bash perl perl-utils"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://lttng.org/files/urcu/userspace-rcu-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make V=1
}

check() {
	make check
	#make regtest # Somewhat long regression tests
}

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

dev() {
	default_dev
	# Move back examples files that are wrongly included
	# by the default dev splitfunc
	cp -pr "$subpkgdir"/usr/share/doc/$pkgname \
		"$pkgdir"/usr/share/doc/
	rm -rf "$subpkgdir"/usr/share/doc/
}

static() {
	depends=""
	pkgdesc="$pkgdesc (static libraries)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}

sha512sums="c0c14eede77358904dfb10774390fd86b4fa9e0ab25d278c869728d40eb263bfa7e489b20ce7198169e71d74fe41bb5018fc1553a5e0654840c9765e088c83db  userspace-rcu-0.12.1.tar.bz2"