mc: multple fixes (#2367)
[termux-packages] / packages / mc / build.sh
index 06322f5..ff6220a 100755 (executable)
@@ -1,9 +1,17 @@
-TERMUX_PKG_VERSION=4.8.16
 TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
 TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
-TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
-TERMUX_PKG_DEPENDS="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_PKG_VERSION=4.8.20
+TERMUX_PKG_REVISION=3
+TERMUX_PKG_SHA256=017ee7f4f8ae420a04f4d6fcebaabe5b494661075c75442c76e9c8b1923d501c
+TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz
+TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
+ac_cv_path_UNZIP=$TERMUX_PREFIX/bin/unzip
+ac_cv_path_ZIP=$TERMUX_PREFIX/bin/zip
+ac_cv_path_PERL=$TERMUX_PREFIX/bin/perl
+ac_cv_path_PYTHON=$TERMUX_PREFIX/bin/python
+ac_cv_path_RUBY=$TERMUX_PREFIX/bin/ruby
+--with-ncurses-includes=$TERMUX_PREFIX/include
+--with-ncurses-libs=$TERMUX_PREFIX/lib
+--with-screen=ncurses
+"