termux-packages/packages/util-linux/build.sh
Butta b6c702b46e protobuf: update from 3.12.4 to 3.13.0 and bump libgrpc, librotobuf-c, and mosh dependent packages
parted: update from 3.2 to 3.3

rhash: update from 1.3.9 to 1.4.0

seafile-client: update from 7.0.8 to 7.0.9

sensible-utils: update from 0.0.12 to 0.0.13

util-linux: update from 2.35.2 to 2.36
2020-08-21 15:45:26 +05:30

43 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=2.36
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
TERMUX_PKG_SHA256=9e4b1c67eb13b9b67feb32ae1dc0d50e08ce9e5d82e1cccd0ee771ad2fa9e0b1
TERMUX_PKG_DEPENDS="ncurses, libcrypt, zlib"
TERMUX_PKG_ESSENTIAL=true
TERMUX_PKG_BREAKS="util-linux-dev"
TERMUX_PKG_REPLACES="util-linux-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_func_setns=yes
ac_cv_func_unshare=yes
--disable-agetty
--disable-ctrlaltdel
--disable-eject
--disable-fdformat
--disable-ipcrm
--disable-ipcs
--disable-kill
--disable-last
--disable-libuuid
--disable-logger
--disable-mesg
--disable-nologin
--disable-pivot_root
--disable-raw
--disable-switch_root
--disable-wall
--disable-libmount
--disable-lsmem
--disable-chmem
--disable-rfkill
--disable-hwclock-cmos
"
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
}