9c9e7f65b8
Specifying Termux org members is more correct as we don't have repo-specific maintainers for termux-packages. DEB control field specification doesn't allow to specify multiple people as package maintainers. Value "Termux members @termux" will be used as default for that field which can be overridden on per-package basis if needed. %ci:no-build
37 lines
1.4 KiB
Bash
37 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/beanshell/beanshell
|
|
TERMUX_PKG_DESCRIPTION="Small, free, embeddable, source level Java interpreter with object based scripting language features written in Java"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
|
TERMUX_PKG_VERSION=2.0b6
|
|
TERMUX_PKG_REVISION=4
|
|
TERMUX_PKG_SRCURL=https://github.com/beanshell/beanshell/releases/download/$TERMUX_PKG_VERSION/bsh-$TERMUX_PKG_VERSION.jar
|
|
TERMUX_PKG_SHA256=a17955976070c0573235ee662f2794a78082758b61accffce8d3f8aedcd91047
|
|
TERMUX_PKG_DEPENDS="dash, termux-tools"
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_download \
|
|
"$TERMUX_PKG_SRCURL" \
|
|
"$TERMUX_PKG_CACHEDIR/bsh-$TERMUX_PKG_VERSION.jar" \
|
|
"$TERMUX_PKG_SHA256"
|
|
}
|
|
|
|
termux_step_make() {
|
|
"$ANDROID_HOME/build-tools/${TERMUX_ANDROID_BUILD_TOOLS_VERSION}/dx" \
|
|
--dex --output=beanshell.jar "$TERMUX_PKG_CACHEDIR/bsh-$TERMUX_PKG_VERSION.jar"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm600 beanshell.jar "$TERMUX_PREFIX/share/dex/beanshell.jar"
|
|
|
|
{
|
|
echo "#!$TERMUX_PREFIX/bin/sh"
|
|
echo "dalvikvm -cp $TERMUX_PREFIX/share/dex/beanshell.jar bsh.Interpreter \"\$@\""
|
|
} > "$TERMUX_PREFIX"/bin/beanshell
|
|
|
|
chmod 700 "$TERMUX_PREFIX"/bin/beanshell
|
|
ln -sfr "$TERMUX_PREFIX"/bin/beanshell "$TERMUX_PREFIX"/bin/bsh
|
|
}
|