termux-packages/packages/libcap/build.sh

20 lines
808 B
Bash
Raw Normal View History

2019-03-18 21:01:25 +01:00
TERMUX_PKG_HOMEPAGE=https://sites.google.com/site/fullycapable/
TERMUX_PKG_DESCRIPTION="POSIX 1003.1e capabilities"
TERMUX_PKG_LICENSE="GPL-2.0"
2020-11-08 22:10:29 +01:00
TERMUX_PKG_VERSION=2.45
2020-11-08 23:37:58 +01:00
TERMUX_PKG_REVISION=1
2019-03-18 21:01:25 +01:00
TERMUX_PKG_SRCURL=https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${TERMUX_PKG_VERSION}.tar.xz
2020-11-08 22:10:29 +01:00
TERMUX_PKG_SHA256=d66639f765c0e10557666b00f519caf0bd07a95f867dddaee131cd284fac3286
2019-03-18 21:01:25 +01:00
TERMUX_PKG_DEPENDS="attr"
TERMUX_PKG_BREAKS="libcap-dev"
TERMUX_PKG_REPLACES="libcap-dev"
2019-03-18 21:01:25 +01:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
2020-11-08 23:37:58 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" PREFIX="$TERMUX_PREFIX" PTHREADS=no
2019-03-18 21:01:25 +01:00
}
termux_step_make_install() {
2020-11-08 23:37:58 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" prefix="$TERMUX_PREFIX" RAISE_SETFCAP=no lib=/lib PTHREADS=no install
2019-03-18 21:01:25 +01:00
}