aboutsummaryrefslogblamecommitdiffstats
path: root/main/libcap-ng/APKBUILD
blob: 5834f6262ee99497b762ce0c1a9204b9a631669c (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   

             
                                    
                                                          
          
                                            
                           
                    
                               
                                                      
                                                                           

                          
                                   

         
                      
                                  



                                 

                                         


                                           



            
                      
                  


           
                      




                                          
 


                                                    
 
                                                                                                                                                                     
                                                                                                                                                     
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libcap-ng
pkgver=0.7.10
pkgrel=0
pkgdesc="POSIX capabilities library"
url="http://people.redhat.com/sgrubb/libcap-ng/index.html"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
depends_dev="linux-headers"
makedepends_build=""
makedepends_host="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz
	fix-includes.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	ac_cv_prog_swig_found=no \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-python \
		--without-python3
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

utils() {
	pkgdesc="posix capabilities utils"

	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/
}

sha512sums="1b93c7f5c20ae5cc705fe5244af3e299454e988388cda95f006e248d97c0713e77da2a81c67ecf15755f3958df373fc6d1ca14197d6357ab1f2d8c3a0fd12def  libcap-ng-0.7.10.tar.gz
8de98ce0fae63812cf7fd17e788343798b0cab63ba029f046ac9b89b2305da17432bafdd3dfa36046fc2cc0a453e0c889f6744c632f4617e0e5fc08e2823e324  fix-includes.patch"