summaryrefslogtreecommitdiff
path: root/repo/libcap/libcap.xibuild
blob: db1b9e9f57f26cb7c3baf0d91f0963e67a1463c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

MAKEDEPS="make "
DEPS="musl pam"

PKG_VER=2.65
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.*

}