blob: 9016b579fccf3d341f52c2132c46691f90419eb8 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# 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.9.2
pkgrel=0
pkgdesc="A userspace RCU (read-copy-update) library"
url="http://lttng.org/urcu/"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev bash perl"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://lttng.org/files/urcu/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
make check || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
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/$pkgname
}
md5sums="49f86e68c1e2f41d303381a271b791d1 userspace-rcu-0.9.2.tar.bz2"
sha256sums="8f7fa313b1e0a3f742cea24ce63a39c0efe63e615a769e2961e55bd2663ecaa3 userspace-rcu-0.9.2.tar.bz2"
sha512sums="36264119d68569565a7b1222c4b0ca90128d121f032b388f27204ceaa9c964901f35be25584e1553b1a7613aad01d11766983ae245860df09444eb2f8ac913fc userspace-rcu-0.9.2.tar.bz2"
|