mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
1382762909
This commit has been automatically submitted by Github Actions.
25 lines
838 B
Bash
25 lines
838 B
Bash
TERMUX_PKG_HOMEPAGE=https://kotlinlang.org/
|
|
TERMUX_PKG_DESCRIPTION="The Kotlin Programming Language"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.1.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/JetBrains/kotlin/releases/download/v${TERMUX_PKG_VERSION}/kotlin-compiler-${TERMUX_PKG_VERSION}.zip
|
|
TERMUX_PKG_SHA256=b6698d5728ad8f9edcdd01617d638073191d8a03139cc538a391b4e3759ad297
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="openjdk-17"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
termux_step_make_install() {
|
|
rm -f ./bin/*.bat
|
|
rm -rf $TERMUX_PREFIX/opt/kotlin
|
|
mkdir -p $TERMUX_PREFIX/opt/kotlin
|
|
cp -r ./* $TERMUX_PREFIX/opt/kotlin/
|
|
for i in $TERMUX_PREFIX/opt/kotlin/bin/*; do
|
|
if [ ! -f "$i" ]; then
|
|
continue
|
|
fi
|
|
ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i)
|
|
done
|
|
}
|