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

              
        

                                    
                


                                                 



                                                  
                                       
                                                                                             
 

                      



                                                                               
                      

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

build () {
	cd "$builddir"
	make BUILD_CC=gcc CC="${CC:-gcc}" lib=lib prefix=/usr DESTDIR="$pkgdir"
}

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

sha512sums="c3ab491885292adc171cde542b96f1295e84132febb50112a46575c3bde3a3eb6fcf733f7a756b4b656e013c0abb5ed6571db24799f8c0b23d8f759f992864f9  libcap-2.25.tar.xz"