Date: Wednesday, August 19, 2020 @ 10:56:20
  Author: arodseth
Revision: 684932

upgpkg: kotlin 1.4.0-1

Modified:
  kotlin/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-08-19 08:31:17 UTC (rev 684931)
+++ PKGBUILD    2020-08-19 10:56:20 UTC (rev 684932)
@@ -2,7 +2,7 @@
 # Contributor: Romain Gautier <romain.gaut...@nimamoh.com>
 
 pkgname=kotlin
-pkgver=1.3.72
+pkgver=1.4.0
 pkgrel=1
 pkgdesc='Statically typed programming language that can interoperate with Java'
 arch=(any)
@@ -11,7 +11,7 @@
 depends=('java-environment>=8')
 makedepends=(setconf)
 
source=("https://github.com/JetBrains/kotlin/releases/download/v${pkgver/_/-}/kotlin-compiler-${pkgver/_/-}.zip";)
-sha256sums=('ccd0db87981f1c0e3f209a1a4acb6778f14e63fe3e561a98948b5317e526cc6c')
+sha256sums=('590391d13b3c65ba52cba470f56efd5b14e2b1f5b9459f63aa12eb38ef52f161')
 
 prepare() {
   cd "${pkgname}c/bin"
@@ -19,7 +19,7 @@
   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/$pkgname
 }
 
 package() {
@@ -32,7 +32,7 @@
   install -Dm755 -t "$pkgdir/usr/bin" bin/kotlinc-jvm
 
   # jar files
-  cd "$srcdir/${pkgname}c/lib"
+  cd lib
   install -d "$pkgdir/usr/share/$pkgname/lib"
   for jar in *.jar; do
     install -Dm644 "$jar" "$pkgdir/usr/share/$pkgname/lib"
@@ -43,9 +43,7 @@
   install -d "$pkgdir/usr/share/licenses/$pkgname"
   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname"
   install -Dm644 NOTICE.txt "$pkgdir/usr/share/licenses/$pkgname"
-
-  cd third_party
-  for txt in *.txt; do
+  for txt in third_party/*.txt; do
     install -Dm644 "$txt" "$pkgdir/usr/share/licenses/$pkgname"
   done
 

Reply via email to