summaryrefslogblamecommitdiff
path: root/system/libcap/APKBUILD
blob: 7bf2b09388bf11044eeef05765682aa3baaf6cbe (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                      
              
           
        

                                    
                                      
                                                  
          
                           
                                             

                                                  
                                                               
                                                                                             
 
         





                                 



                 
           

                                           

                                                     


           




                                         
 
 
                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=libcap
pkgver=2.63
pkgrel=0
pkgdesc="POSIX 1003.1e capabilities"
arch="all"
license="BSD-3-Clause OR GPL-2.0-only"
url="https://www.friedhoff.org/posixfilecaps.html"
depends=""
depends_dev="linux-headers"
makedepends_build="linux-headers perl !gperf"
makedepends_host="$depends_dev attr-dev"
makedepends="$makedepends_build $makedepends_host"
subpackages="$pkgname-static:_static $pkgname-doc $pkgname-dev"
source="https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.xz"

build() {
	make \
		BUILD_CC=gcc \
		CC="${CC:-gcc}" \
		lib=lib 
}

check() {
	make test
}

_static() {
	pkgdesc="$pkgdesc (static library)"
	depends="$pkgname-dev"
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}

package() {
	make \
		lib=/lib \
		prefix=/usr \
		RAISE_SETFCAP=no \
		DESTDIR="$pkgdir" install
}

sha512sums="832842b71ca32db8f53ca5f1a3010f14e7f42693f62f29632e9948c860f990899bb094165c37307ce8b9e5bc5eb1c833e780ebca98442df3e6d900e4b238834b  libcap-2.63.tar.xz"