Enable dependency checks for out-of-tree packages
[termux-packages] / disabled-packages / mtr / build.sh
index 0d7aa52..22e4e5b 100644 (file)
@@ -1,18 +1,14 @@
-# Status: Needs hcreate()/hsearch()/hdestroy() in search.h,
-#         which is not included in the NDK.
-
 TERMUX_PKG_HOMEPAGE=https://github.com/traviscross/mtr
 TERMUX_PKG_DESCRIPTION="Network diagnostic tool"
-_DATE=20160609
-# Note that the newdns branch is used.
-_COMMIT=66de3ecbab28b054b868a73fbb57f30549d770ac
-TERMUX_PKG_VERSION=0.86.${_DATE}
-TERMUX_PKG_SRCURL=https://github.com/traviscross/mtr/archive/${_COMMIT}.zip
-TERMUX_PKG_FOLDERNAME=mtr-$_COMMIT
+TERMUX_PKG_VERSION=0.92
+TERMUX_PKG_SHA256=568a52911a8933496e60c88ac6fea12379469d7943feb9223f4337903e4bc164
+TERMUX_PKG_SRCURL=https://github.com/traviscross/mtr/archive/v${TERMUX_PKG_VERSION}.tar.gz
 TERMUX_PKG_DEPENDS="ncurses"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-gtk"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-gtk --disable-ipv6"
 
 termux_step_pre_configure() {
+       cp $TERMUX_PKG_BUILDER_DIR/hsearch/* $TERMUX_PKG_SRCDIR/portability
+
        cd $TERMUX_PKG_SRCDIR
        ./bootstrap.sh
 }