| 1 | TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux |
| 2 | TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities" |
| 3 | TERMUX_PKG_VERSION=2.30.1 |
| 4 | TERMUX_PKG_SHA256=1be4363a91ac428c9e43fc04dc6d2c66a19ec1e36f1105bd4b481540be13b841 |
| 5 | 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 |
| 6 | TERMUX_PKG_DEPENDS="ncurses, libutil, libcrypt" |
| 7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 8 | ac_cv_func_setns=yes |
| 9 | ac_cv_func_unshare=yes |
| 10 | --disable-agetty |
| 11 | --disable-eject |
| 12 | --disable-ipcrm |
| 13 | --disable-ipcs |
| 14 | --disable-kill |
| 15 | --disable-last |
| 16 | --disable-libuuid |
| 17 | --disable-logger |
| 18 | --disable-pivot_root |
| 19 | --disable-switch_root |
| 20 | --disable-wall |
| 21 | --disable-libmount |
| 22 | --disable-lsmem |
| 23 | --disable-chmem |
| 24 | " |
| 25 | # bin/column is currently bundled in the fish package: |
| 26 | TERMUX_PKG_RM_AFTER_INSTALL="bin/column share/man/man1/column.1" |
| 27 | |
| 28 | termux_step_pre_configure() { |
| 29 | if [ $TERMUX_ARCH_BITS = 64 ]; then |
| 30 | # prlimit() is only available in 64-bit bionic. |
| 31 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_prlimit=yes" |
| 32 | fi |
| 33 | } |