From 5db51f6ae34026b7ad6263cf6a98ce5d4c0c0cd5 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 3 Feb 2020 14:33:21 -0600 Subject: [PATCH] new package: calc --- packages/calc/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/calc/build.sh diff --git a/packages/calc/build.sh b/packages/calc/build.sh new file mode 100644 index 000000000..d4e1982f9 --- /dev/null +++ b/packages/calc/build.sh @@ -0,0 +1,22 @@ +TERMUX_PKG_HOMEPAGE=http://www.isthe.com/chongo/tech/comp/calc/ +TERMUX_PKG_DESCRIPTION="Arbitrary precision console calculator" +TERMUX_PKG_LICENSE="LGPL-2.1" +TERMUX_PKG_VERSION=2.12.7.2 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL=http://www.isthe.com/chongo/src/calc/calc-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=57af44181ca3af7348c82ee628cfd221677a09fef11a29d2e5667726d5aafc90 +TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, readline" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_make() { + # Fails with -j$TERMUX_MAKE_PROCESSES for some reason + make USE_READLINE="-DUSE_READLINE" READLINE_EXTRAS="-lhistory -lncurses" \ + READLINE_LIB="-L$TERMUX_PREFIX/lib -lreadline" \ + READLINE_INCLUDE="-I$TERMUX_PREFIX/include" \ + DEFAULT_LIB_INSTALL_PATH="$TERMUX_PREFIX/lib" CC="$CC" -j1 +} + +termux_step_make_install() { + make T="$TERMUX_PREFIX" BINDIR="/bin" LIBDIR="/lib" INCDIR="/include" \ + SCRIPTDIR="/share/calc/cscript" CALC_SHAREDIR="/share/calc" install +}