termux-packages/packages/libcap/build.sh

21 lines
930 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"
2022-04-15 19:22:35 +02:00
TERMUX_PKG_LICENSE="BSD 3-Clause, GPL-2.0"
TERMUX_PKG_LICENSE_FILE="License"
TERMUX_PKG_MAINTAINER="@termux"
2022-04-15 19:22:35 +02:00
TERMUX_PKG_VERSION=2.64
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
2022-04-15 19:22:35 +02:00
TERMUX_PKG_SHA256=c8465e1f0b068d5fc06199231135ccac7adb56d662b1de93589252e8cd071e13
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() {
2022-03-13 14:48:16 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" OBJCOPY=llvm-objcopy PREFIX="$TERMUX_PREFIX" PTHREADS=no PAM_CAP=no
2019-03-18 21:01:25 +01:00
}
termux_step_make_install() {
2022-03-13 14:48:16 +01:00
make CC="$CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" OBJCOPY=llvm-objcopy prefix="$TERMUX_PREFIX" RAISE_SETFCAP=no lib=/lib PTHREADS=no install PAM_CAP=no
2019-03-18 21:01:25 +01:00
}