termux-packages/packages/libcap/build.sh

18 lines
766 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"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2019-05-02 00:37:03 +02:00
TERMUX_PKG_VERSION=2.27
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
2019-05-02 00:37:03 +02:00
TERMUX_PKG_SHA256=dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a
2019-03-18 21:01:25 +01:00
TERMUX_PKG_DEPENDS="attr"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
2019-03-25 15:54:49 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" PREFIX="$TERMUX_PREFIX"
2019-03-18 21:01:25 +01:00
}
termux_step_make_install() {
2019-03-25 15:54:49 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" prefix="$TERMUX_PREFIX" RAISE_SETFCAP=no lib=/lib install
2019-03-18 21:01:25 +01:00
}