mc: Update from 4.8.17 to 4.8.18
[termux-packages] / packages / mc / build.sh
1 TERMUX_PKG_VERSION=4.8.18
2 TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
3 TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
4 TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
5 TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib"
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncurses-libs=$TERMUX_PREFIX/lib --with-screen=ncurses"
7
8 termux_step_pre_configure() {
9 # mc uses the deprecated S_IWRITE definition, which android does not define:
10 # https://code.google.com/p/android/issues/detail?id=19710
11 CPPFLAGS+=" -DS_IWRITE=S_IWUSR"
12 }