diff options
Diffstat (limited to 'main/userspace-rcu/APKBUILD')
-rw-r--r-- | main/userspace-rcu/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/userspace-rcu/APKBUILD b/main/userspace-rcu/APKBUILD new file mode 100644 index 0000000000..cd039f917c --- /dev/null +++ b/main/userspace-rcu/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=userspace-rcu +pkgver=0.7.7 +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" +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" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +# Tests are extremly time-consuming +# make check || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="d14de3ff32eb1ab9424b258599c8a6f3 userspace-rcu-0.7.7.tar.bz2" +sha256sums="8ab8a7d8fea47c09ceac24c9277f00da626bbd9426c973eb325b1baf33b4bdfb userspace-rcu-0.7.7.tar.bz2" +sha512sums="6b9d1573d653deae3f3e182b51f6214c98efe9397751cb87e572301aac67d6ec75873921693619460be6f833bfe85eb8e9d6012618a8664dd12c8d97c52b5037 userspace-rcu-0.7.7.tar.bz2" |