40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'kotlin-bin'
|
|
pkgname=kotlin-bin
|
|
version=1.5.0
|
|
revision=1
|
|
archs="x86_64"
|
|
wrksrc=kotlinc
|
|
makedepends="unzip setconf"
|
|
depends="openjdk8"
|
|
short_desc="Statically typed programming language that can interoperate with Java"
|
|
maintainer="shizonic <realtiaz@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://kotlinlang.org/"
|
|
distfiles="https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-compiler-${version}.zip"
|
|
checksum=0343fc1f628fec1beccc9e534d2b8b7a0f8964b97e21563585d44d6d928ed1b7
|
|
nostrip=yes
|
|
replaces="kotlin>=0"
|
|
|
|
pre_install() {
|
|
cd bin
|
|
setconf kotlin DIR "/usr/bin"
|
|
setconf kotlinc-js DIR "/usr/bin"
|
|
setconf kotlinc-jvm DIR "/usr/bin"
|
|
setconf kotlinc KOTLIN_HOME "/usr/share/kotlin-bin"
|
|
}
|
|
|
|
do_install() {
|
|
# executables
|
|
vbin bin/kotlin
|
|
vbin bin/kotlinc
|
|
vbin bin/kotlinc-js
|
|
vbin bin/kotlinc-jvm
|
|
|
|
# jar files
|
|
vmkdir usr/share/kotlin-bin/lib
|
|
vcopy lib/* usr/share/kotlin-bin/lib
|
|
|
|
# build.txt must be installed for for "-version" to work
|
|
vcopy build.txt usr/share/kotlin-bin
|
|
}
|