diff options
Diffstat (limited to 'main/libcap-ng')
-rw-r--r-- | main/libcap-ng/APKBUILD | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/main/libcap-ng/APKBUILD b/main/libcap-ng/APKBUILD index 5cc77db5a2..a1503aedac 100644 --- a/main/libcap-ng/APKBUILD +++ b/main/libcap-ng/APKBUILD @@ -6,29 +6,17 @@ pkgdesc="posix capabilities library" url="http://people.redhat.com/sgrubb/libcap-ng/index.html" arch="all" license="GPL" -depends= depends_dev="linux-headers" makedepends="python3 $depends_dev" makedepends_host="$depends_dev" -install= subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" source="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$pkgver.tar.gz fix-includes.patch " - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,24 +28,21 @@ build() { } check() { - cd "$_builddir" + cd "$builddir" make check } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } utils() { pkgdesc="posix capabilities utils" + mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/ } -md5sums="0dece96644bd798020e170fbf7663802 libcap-ng-0.7.8.tar.gz -d0b630552aeba718e3fb956ade989460 fix-includes.patch" -sha256sums="c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f libcap-ng-0.7.8.tar.gz -bbd5d9869b323503a0953ea8225718b62fc9f342b710b05729a88ae16147905b fix-includes.patch" sha512sums="c32a4c5780c183b13611615abe9061221fd8987188b08828d1617cdaee338ad8de67b3430aa83bde60128efc76449a688546bfbf697f0847b6a835cb1a868756 libcap-ng-0.7.8.tar.gz 8de98ce0fae63812cf7fd17e788343798b0cab63ba029f046ac9b89b2305da17432bafdd3dfa36046fc2cc0a453e0c889f6744c632f4617e0e5fc08e2823e324 fix-includes.patch" |