2020-08-23 18:03:01 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://wren.io/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Small, fast, class-based concurrent scripting language libraries"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-06-14 14:15:02 +02:00
|
|
|
TERMUX_PKG_VERSION=0.4.0
|
2020-08-23 18:03:01 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/wren-lang/wren/archive/$TERMUX_PKG_VERSION.tar.gz
|
2021-06-14 14:15:02 +02:00
|
|
|
TERMUX_PKG_SHA256=23c0ddeb6c67a4ed9285bded49f7c91714922c2e7bb88f42428386bf1cf7b339
|
2020-08-23 21:16:25 +02:00
|
|
|
TERMUX_PKG_BREAKS="wren-dev, wren (<< 0.3.0)"
|
|
|
|
TERMUX_PKG_REPLACES="wren-dev, wren (<< 0.3.0)"
|
2020-08-23 18:03:01 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_NO_STATICSPLIT=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
local QUIET_BUILD=
|
|
|
|
if [ "$TERMUX_QUIET_BUILD" = true ]; then
|
|
|
|
QUIET_BUILD="-s"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd projects/make
|
|
|
|
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}
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR"/src/include/wren.h \
|
|
|
|
"$TERMUX_PREFIX"/include/wren.h
|
|
|
|
|
|
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR"/lib/libwren.so \
|
|
|
|
"$TERMUX_PREFIX"/lib/libwren.so
|
|
|
|
|
|
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR"/lib/libwren.a \
|
|
|
|
"$TERMUX_PREFIX"/lib/libwren.a
|
|
|
|
}
|