Add some more source checksums
[termux-packages] / packages / mc / build.sh
index 06e9160..29b0890 100755 (executable)
@@ -1,9 +1,13 @@
-TERMUX_PKG_VERSION=4.8.14
 TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/
-TERMUX_PKG_DESCRIPTION="Midnight Commander: Feature-rich text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell, with included internal viewer and editor"
+TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
+TERMUX_PKG_VERSION=4.8.18
 TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
-TERMUX_PKG_DEPENDS="ncurses, glib"
+TERMUX_PKG_SHA256=f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece
+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_IREAD and S_IWRITE definitions, which android does not define:
-# https://code.google.com/p/android/issues/detail?id=19710
-CPPFLAGS="$CPPFLAGS -DS_IREAD=S_IRUSR -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"
+}