From 12d1f508b14dffe7b3ea676be1367b4de6ee4b0a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 30 Aug 2015 17:48:15 -0400 Subject: [PATCH] Add tcl package --- packages/tcl/build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/tcl/build.sh diff --git a/packages/tcl/build.sh b/packages/tcl/build.sh new file mode 100644 index 000000000..0157a5cb3 --- /dev/null +++ b/packages/tcl/build.sh @@ -0,0 +1,16 @@ +TERMUX_PKG_HOMEPAGE=https://www.tcl.tk/ +TERMUX_PKG_DESCRIPTION="Powerful but easy to learn dynamic programming language" +_MAJOR_VERSION=8.6 +TERMUX_PKG_VERSION=${_MAJOR_VERSION}.4 +TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tcl/Tcl/${TERMUX_PKG_VERSION}/tcl${TERMUX_PKG_VERSION}-src.tar.gz +TERMUX_PKG_FOLDERNAME=tcl$TERMUX_PKG_VERSION +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="tcl_cv_strtod_buggy=ok --mandir=$TERMUX_PREFIX/share/man" + +termux_step_pre_configure () { + TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/unix +} + +termux_step_post_make_install () { + cd $TERMUX_PREFIX/bin + ln -f -s tclsh$_MAJOR_VERSION tclsh +}