aboutsummaryrefslogblamecommitdiffstats
path: root/main/userspace-rcu/APKBUILD
blob: 740f203af212552670fbc29702e0246e0b424348 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      


                                                               
             
        
                                                    
                         
          
                           

                                                       
                                                              

         
                      



                                 


                                           

                                    



                      
                  
                                                      


           
                      
                                      
                                                                            

 





                                                            
                                          

 







                                                                                                                                                                           
# 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.11.0
pkgrel=0
pkgdesc="A 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/$pkgname-$pkgver.tar.bz2"

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/
}

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

sha512sums="01f211edce9b478c5776e54888e30ebef1105c7463b72800ee55dd097ad667ee5eca651cc755b61cc9a86a610b1c82f8fb21bd583554ad6713f33c74aa93d7eb  userspace-rcu-0.11.0.tar.bz2"