summaryrefslogtreecommitdiff
path: root/repo/system/libcap/libcap.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/libcap/libcap.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/libcap/libcap.xibuild')
-rw-r--r--repo/system/libcap/libcap.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/system/libcap/libcap.xibuild b/repo/system/libcap/libcap.xibuild
new file mode 100644
index 0000000..dab917e
--- /dev/null
+++ b/repo/system/libcap/libcap.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl pam"
+
+PKG_VER=2.62
+SOURCE=https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-$PKG_VER.tar.gz
+
+DESC="POSIX 1003.1e capabilities"
+
+prepare () {
+ sed -i '/install -m.*STA/d' libcap/Makefile
+ sed -i 's/xargs -e/xargs /g' pam_cap/Makefile
+}
+
+build () {
+ make prefix=/usr lib=lib
+}
+
+check () {
+ make test
+}
+
+package() {
+ make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
+ chmod 755 $PKG_DEST/usr/lib/libcap.so.*
+ chmod 755 $PKG_DEST/usr/lib/libpsx.so.*
+
+}