termux-packages/packages/wren/build.sh

32 lines
917 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://wren.io/
TERMUX_PKG_DESCRIPTION="Small, fast, class-based concurrent scripting language interpreter"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
2020-08-09 19:12:33 +02:00
TERMUX_PKG_VERSION=0.3.0
2021-10-06 14:52:08 +02:00
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/wren-lang/wren-cli/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=a498d2ccb9a723e7163b4530efbaec389cc13e6baaf935e16cbd052a739b7265
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libuv"
TERMUX_PKG_BUILD_IN_SRC=true
2020-08-09 19:12:33 +02:00
termux_step_make() {
local QUIET_BUILD=
if [ "$TERMUX_QUIET_BUILD" = true ]; then
QUIET_BUILD="-s"
fi
cd projects/make
2020-08-09 20:06:54 +02:00
if [ "$TERMUX_ARCH" = i686 ] || [ "$TERMUX_ARCH" = arm ]; then
RELEASE=release_32bit
else
RELEASE=release_64bit
fi
make -j $TERMUX_MAKE_PROCESSES $QUIET_BUILD config=${RELEASE}
2020-08-09 19:12:33 +02:00
}
termux_step_make_install() {
install -Dm700 "$TERMUX_PKG_SRCDIR"/bin/wren_cli \
"$TERMUX_PREFIX"/bin/wren
}