# Contributor: Michael Jeanson # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=userspace-rcu pkgver=0.10.2 pkgrel=0 pkgdesc="A userspace RCU (read-copy-update) library" url="http://lttng.org/urcu/" arch="all" license="LGPL-2.1-or-later" depends="" depends_dev="" makedepends="$depends_dev bash perl perl-utils" install="" subpackages="$pkgname-dev $pkgname-doc" source="https://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 make V=1 } check() { cd "$builddir" make check #make regtest # Somewhat long regression tests } package() { cd "$builddir" 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/$pkgname } sha512sums="47413b4a593d19185ee3d455e5744042c060cb50008dac25e9135c5cd2250ef5129a419258b18c665c8c794ad3b09234fdd70a106c72d8fc64631172b13d0e22 userspace-rcu-0.10.2.tar.bz2"