X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/bccd6e27803607b532e29449f2137873f9b25502..3abecd4081c55287d9fa7e45781b52f4b28cfdc4:/packages/w3m/build.sh diff --git a/packages/w3m/build.sh b/packages/w3m/build.sh index f43581f5..e2e30d79 100644 --- a/packages/w3m/build.sh +++ b/packages/w3m/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Text based Web browser and pager" _MAJOR_VERSION=0.5.3 _MINOR_VERSION=20170102 TERMUX_PKG_VERSION=0.5.3.$_MINOR_VERSION +TERMUX_PKG_REVISION=1 # The upstream w3m project is dead, but every linux distribution uses # this maintained fork in debian: TERMUX_PKG_SRCURL=https://github.com/tats/w3m/archive/v${_MAJOR_VERSION}+git${_MINOR_VERSION}.tar.gz @@ -14,5 +15,12 @@ TERMUX_PKG_DEPENDS="libgc, ncurses, openssl" # breaks 64-bit builds where NDK headers define bcopy as a macro: TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_setpgrp_void=yes ac_cv_func_bcopy=yes" +#Overwrite the default /usr/bin/firefox with termux-open-url as default external browser. That way, pressing "M" on a URL will open a link in Androids default Browser. +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-browser=termux-open-url" +#Overwrite the default editor to just vi, as the default was /usr/bin/vi. +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-editor=vi" +# Avoid trying to build w3mimg: +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-image=no" + # For Makefile.in.patch: export TERMUX_PKG_BUILDER_DIR