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

                                    
                
                                      
                                                  
          
                           
                                             

                                                  
                                       
                                                                                             
 
          



                                                                               

                                                                            
 
                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=libcap
pkgver=2.27
pkgrel=0
pkgdesc="POSIX 1003.1e capabilities"
arch="all"
options="!check"
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-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 prefix=/usr DESTDIR="$pkgdir"
}

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

sha512sums="e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6  libcap-2.27.tar.xz"