blob: 5f9447310ce0c92467e244258674282f7f847644 (
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
|
# 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.3
pkgrel=1
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 perl-utils"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://lttng.org/files/urcu/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver
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
}
sha512sums="35a2d2ce3c738fcd0932c27fa0e1a42d9c6e2a0506e5792c8e570dccbc9601e15c95501e0b277a5dc48e7c7a0c315f00c6d6ad7c1dcdf8512251bcc6a690ce61 userspace-rcu-0.9.3.tar.bz2"
|