From 57e20e6f5a7d0f308f31e6938ce2d852b3c5d0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 1 Jan 2019 20:37:37 +0100 Subject: [PATCH] kotlin-bin: update to 1.3.11. --- srcpkgs/kotlin-bin/template | 12 ++++++------ srcpkgs/kotlin-bin/update | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/kotlin-bin/update diff --git a/srcpkgs/kotlin-bin/template b/srcpkgs/kotlin-bin/template index a94a34d16f8..da2582196aa 100644 --- a/srcpkgs/kotlin-bin/template +++ b/srcpkgs/kotlin-bin/template @@ -1,6 +1,6 @@ # Template file for 'kotlin-bin' pkgname=kotlin-bin -version=1.2.60 +version=1.3.11 revision=1 wrksrc="kotlinc" only_for_archs="x86_64" @@ -11,7 +11,7 @@ maintainer="shizonic " license="Apache-2.0" homepage="https://kotlinlang.org/" distfiles="https://github.com/JetBrains/kotlin/releases/download/v${version}/kotlin-compiler-${version}.zip" -checksum=ff79f695c9be0a500d4b56a69d0b8657b3d106d78a35101e792248af904a623d +checksum=03de0f1a4b49d36433e60ae495982f046782eb3725e6e22a04e24ef38be9a409 nostrip=yes replaces="kotlin>=0" @@ -20,7 +20,7 @@ pre_install() { setconf kotlin DIR "/usr/bin" setconf kotlinc-js DIR "/usr/bin" setconf kotlinc-jvm DIR "/usr/bin" - setconf kotlinc KOTLIN_HOME "/usr/share/${pkgname}" + setconf kotlinc KOTLIN_HOME "/usr/share/kotlin-bin" } do_install() { @@ -31,13 +31,13 @@ do_install() { vbin bin/kotlinc-jvm # jar files - vmkdir usr/share/${pkgname}/lib - vcopy lib/* usr/share/${pkgname}/lib + vmkdir usr/share/kotlin-bin/lib + vcopy lib/* usr/share/kotlin-bin/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} + vcopy build.txt usr/share/kotlin-bin } diff --git a/srcpkgs/kotlin-bin/update b/srcpkgs/kotlin-bin/update new file mode 100644 index 00000000000..0c9eae2015b --- /dev/null +++ b/srcpkgs/kotlin-bin/update @@ -0,0 +1,2 @@ +site=https://github.com/JetBrains/kotlin/releases/latest +pattern='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'