colordiff: Update from 1.0.16 to 1.0.18
[termux-packages] / packages / mc / build.sh
index ffa5707..aeb8df3 100755 (executable)
@@ -1,10 +1,13 @@
-TERMUX_PKG_VERSION=4.8.16
-TERMUX_PKG_BUILD_REVISION=3
 TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
 TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
+TERMUX_PKG_VERSION=4.8.19
 TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
+TERMUX_PKG_SHA256=eb9e56bbb5b2893601d100d0e0293983049b302c5ab61bfb544ad0ee2cc1f2df
 TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib"
 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncurses-libs=$TERMUX_PREFIX/lib --with-screen=ncurses"
-# mc uses the deprecated S_IWRITE definition, which android does not define:
-# https://code.google.com/p/android/issues/detail?id=19710
-CPPFLAGS="$CPPFLAGS -DS_IWRITE=S_IWUSR"
+
+termux_step_pre_configure() {
+       # mc uses the deprecated S_IWRITE definition, which android does not define:
+       # https://code.google.com/p/android/issues/detail?id=19710
+       CPPFLAGS+=" -DS_IWRITE=S_IWUSR"
+}