termux-packages/packages/util-linux/build.sh

35 lines
977 B
Bash
Raw Normal View History

2016-06-23 22:25:17 +02:00
TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2019-01-20 22:56:01 +01:00
TERMUX_PKG_VERSION=2.33.1
2019-04-14 14:51:46 +02:00
TERMUX_PKG_REVISION=3
2019-01-20 22:56:01 +01:00
TERMUX_PKG_SHA256=c14bd9f3b6e1792b90db87696e87ec643f9d63efa0a424f092a5a6b2f2dbef21
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/utils/util-linux/v${TERMUX_PKG_VERSION:0:4}/util-linux-${TERMUX_PKG_VERSION}.tar.xz
2019-04-14 14:51:46 +02:00
TERMUX_PKG_DEPENDS="ncurses, libcrypt, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_func_setns=yes
ac_cv_func_unshare=yes
--disable-agetty
--disable-eject
--disable-ipcrm
--disable-ipcs
--disable-kill
--disable-last
--disable-libuuid
--disable-logger
--disable-pivot_root
--disable-switch_root
--disable-wall
--disable-libmount
--disable-lsmem
--disable-chmem
2018-05-19 03:18:52 +02:00
--disable-rfkill
"
2016-06-23 22:25:17 +02:00
termux_step_pre_configure() {
if [ $TERMUX_ARCH_BITS = 64 ]; then
# prlimit() is only available in 64-bit bionic.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_prlimit=yes"
fi
}