2021-08-02 14:10:38 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.scala-lang.org
|
2021-11-04 13:21:52 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Scala 3 compiler and standard library."
|
2021-08-02 14:10:38 +02:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-16 12:45:35 +02:00
|
|
|
TERMUX_PKG_VERSION=3.1.2
|
2021-11-04 13:21:52 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/lampepfl/dotty/releases/download/$TERMUX_PKG_VERSION/scala3-$TERMUX_PKG_VERSION.tar.gz
|
2022-04-16 12:45:35 +02:00
|
|
|
TERMUX_PKG_SHA256=154f42c1c2fa4be470266b12a9f2052f927873a6599318b6eb1bee6d43cf88bf
|
2021-08-02 14:10:38 +02:00
|
|
|
TERMUX_PKG_DEPENDS="openjdk-17"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
2022-04-16 12:45:35 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2021-08-02 14:10:38 +02:00
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
rm -f ./bin/*.bat
|
|
|
|
rm -rf $TERMUX_PREFIX/opt/scala
|
|
|
|
mkdir -p $TERMUX_PREFIX/opt/scala
|
|
|
|
cp -r ./* $TERMUX_PREFIX/opt/scala/
|
|
|
|
for i in $TERMUX_PREFIX/opt/scala/bin/*; do
|
|
|
|
if [ ! -f "$i" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i)
|
|
|
|
done
|
|
|
|
}
|