X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/035a2a67d1e2c47161e1703f3f2391a9a5322c18..33568e20fe54d6d0e3bc3e484c1319dd72276cc3:/packages/picolisp/build.sh diff --git a/packages/picolisp/build.sh b/packages/picolisp/build.sh index d6de2263..ac46ad5a 100644 --- a/packages/picolisp/build.sh +++ b/packages/picolisp/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Lisp interpreter and application server framework" TERMUX_PKG_DEPENDS="libcrypt, openssl" _PICOLISP_YEAR=16 _PICOLISP_MONTH=6 -_PICOLISP_DAY=4 +_PICOLISP_DAY=21 TERMUX_PKG_VERSION=${_PICOLISP_YEAR}.${_PICOLISP_MONTH}.${_PICOLISP_DAY} TERMUX_PKG_SRCURL=http://software-lab.de/picoLisp.tgz TERMUX_PKG_NO_SRC_CACHE=yes @@ -12,18 +12,18 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { # Validate that we have the right version: - grep -q "$_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l + grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || { + echo "ERROR: Picolisp version needs to be bumped" 1>&2 + grep Version src64/version.l 1>&2 + exit 1 + } if [ $TERMUX_ARCH_BITS = 64 ]; then cd $TERMUX_PKG_SRCDIR if [ $TERMUX_ARCH = "aarch64" ]; then export TERMUX_PKG_EXTRA_MAKE_ARGS=arm64.linux - termux_download http://software-lab.de/arm64.linux.tgz $TERMUX_PKG_TMPDIR/arm64.linux.tgz - tar xf $TERMUX_PKG_TMPDIR/arm64.linux.tgz elif [ $TERMUX_ARCH = "x86_64" ]; then export TERMUX_PKG_EXTRA_MAKE_ARGS=x86-64.linux - termux_download http://software-lab.de/x86-64.linux.tgz $TERMUX_PKG_TMPDIR/x86-64.linux.tgz - tar xf $TERMUX_PKG_TMPDIR/x86-64.linux.tgz else echo "Error: Unsupported arch: $TERMUX_ARCH" exit 1