X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/af4dc416ed4471e533783491e720d5695f91f447..bf4df9ee4853b4bf8fa3fea0226779a6ff61b2b0:/packages/w3m/build.sh diff --git a/packages/w3m/build.sh b/packages/w3m/build.sh index 5979d831..f43581f5 100644 --- a/packages/w3m/build.sh +++ b/packages/w3m/build.sh @@ -1,12 +1,17 @@ TERMUX_PKG_HOMEPAGE=http://w3m.sourceforge.net/ TERMUX_PKG_DESCRIPTION="Text based Web browser and pager" -TERMUX_PKG_VERSION=0.5.3 -TERMUX_PKG_REVISION=1 -TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/w3m/w3m/w3m-$TERMUX_PKG_VERSION/w3m-${TERMUX_PKG_VERSION}.tar.gz +_MAJOR_VERSION=0.5.3 +_MINOR_VERSION=20170102 +TERMUX_PKG_VERSION=0.5.3.$_MINOR_VERSION +# 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 +TERMUX_PKG_SHA256=7eb8cadfa39daa6e8ecf8244847991f614fdc5319e601f58fc02956bc05b5ab1 +TERMUX_PKG_FOLDERNAME=w3m-${_MAJOR_VERSION}-git${_MINOR_VERSION} TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_DEPENDS="libgc, ncurses, openssl" # ac_cv_func_bcopy=yes to avoid w3m defining it's own bcopy function, which -# breaks 64-bit builds where NDK headers define bcopy as a mactro: +# 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" # For Makefile.in.patch: