diff options
author | Nathan Owens <ndowens@artixlinux.org> | 2022-01-09 13:14:14 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-01 17:05:39 -0500 |
commit | 76a8b4baf682b912180012174770840cc44aa011 (patch) | |
tree | d32d05d8c88cd16168b4ec66ade5a62603363cb0 /system/libcap/APKBUILD | |
parent | b491e0e8315eea57694488ffd84596c22310b676 (diff) | |
download | packages-76a8b4baf682b912180012174770840cc44aa011.tar.gz packages-76a8b4baf682b912180012174770840cc44aa011.tar.bz2 packages-76a8b4baf682b912180012174770840cc44aa011.tar.xz packages-76a8b4baf682b912180012174770840cc44aa011.zip |
system/libcap: Upgrade and add static subpackage
Diffstat (limited to 'system/libcap/APKBUILD')
-rw-r--r-- | system/libcap/APKBUILD | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/system/libcap/APKBUILD b/system/libcap/APKBUILD index 80683e4de..def2eba12 100644 --- a/system/libcap/APKBUILD +++ b/system/libcap/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: pkgname=libcap -pkgver=2.27 +pkgver=2.44 pkgrel=0 pkgdesc="POSIX 1003.1e capabilities" arch="all" @@ -13,15 +13,29 @@ 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" +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 prefix=/usr DESTDIR="$pkgdir" + make \ + BUILD_CC=gcc \ + CC="${CC:-gcc}" \ + lib=lib +} + +_static() { + pkgdesc="libcap static library" + depends="" + 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 + make \ + lib=/lib \ + prefix=/usr \ + RAISE_SETFCAP=no \ + DESTDIR="$pkgdir" install } -sha512sums="e32335fd3e0d1564574acc73df7030b5b0fd98875217bffabd76f2765f1a7a6f1369f03df2ee22a1782776838784e342378c10613ea1163d53ae5055ab6a62b6 libcap-2.27.tar.xz" +sha512sums="1bb323ca362923bd6bd0e2e4639cf8726975165a620a243b31e797056439eb7efb2bfbc8e5521636783a86c7415b2037b1638c98747b79183ca7d3d42a04ff20 libcap-2.44.tar.xz" |