| 1 | TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux |
| 2 | TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities" |
| 3 | TERMUX_PKG_VERSION=2.29.2 |
| 4 | TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-${TERMUX_PKG_VERSION}.tar.xz |
| 5 | TERMUX_PKG_SHA256=accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3 |
| 6 | TERMUX_PKG_DEPENDS="ncurses, libutil" |
| 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 | " |
| 22 | # bin/column is currently bundled in the fish package: |
| 23 | TERMUX_PKG_RM_AFTER_INSTALL="bin/column share/man/man1/column.1" |
| 24 | |
| 25 | termux_step_pre_configure() { |
| 26 | if [ $TERMUX_ARCH_BITS = 64 ]; then |
| 27 | # prlimit() is only available in 64-bit bionic. |
| 28 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_prlimit=yes" |
| 29 | fi |
| 30 | } |