mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: kotlin-1.2.51 (#1153)
This commit is contained in:
parent
992b52a966
commit
b0e0b30ab2
1 changed files with 42 additions and 0 deletions
42
srcpkgs/kotlin/template
Normal file
42
srcpkgs/kotlin/template
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Template file for 'kotlin'
|
||||||
|
pkgname=kotlin
|
||||||
|
version=1.2.51
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname}c"
|
||||||
|
only_for_archs="x86_64"
|
||||||
|
makedepends="unzip setconf"
|
||||||
|
depends="openjdk"
|
||||||
|
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=8a74711c805d3d265b93c13d8c40af5b4dad324591450d2eef0eafc1c9a6f92c
|
||||||
|
nostrip=yes
|
||||||
|
|
||||||
|
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/${pkgname}"
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
# executables
|
||||||
|
vbin bin/kotlin
|
||||||
|
vbin bin/kotlinc
|
||||||
|
vbin bin/kotlinc-js
|
||||||
|
vbin bin/kotlinc-jvm
|
||||||
|
|
||||||
|
# jar files
|
||||||
|
vmkdir usr/share/${pkgname}/lib
|
||||||
|
vcopy lib/* usr/share/${pkgname}/lib
|
||||||
|
|
||||||
|
# licenses
|
||||||
|
vlicense license/LICENSE.txt
|
||||||
|
vlicense license/NOTICE.txt
|
||||||
|
|
||||||
|
# build.txt must be installed for for "-version" to work
|
||||||
|
vcopy build.txt usr/share/${pkgname}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue