[arch-commits] Commit in kotlin/repos/community-any (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Fri Jul 8 11:59:29 UTC 2016
Date: Friday, July 8, 2016 @ 11:59:29
Author: arodseth
Revision: 182511
archrelease: copy trunk to community-any
Added:
kotlin/repos/community-any/PKGBUILD
(from rev 182510, kotlin/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: kotlin/repos/community-any/PKGBUILD (from rev 182510, kotlin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-07-08 11:59:29 UTC (rev 182511)
@@ -0,0 +1,52 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Romain Gautier <romain.gautier at nimamoh.com>
+
+pkgname=kotlin
+pkgver=1.0.3
+pkgrel=1
+pkgdesc='The Kotlin programming language'
+arch=('any')
+url="https://github.com/JetBrains/kotlin/releases/tag/v$pkgver"
+license=('apache' 'custom')
+depends=('java-environment>=6')
+makedepends=('setconf')
+source=("https://github.com/JetBrains/kotlin/releases/download/v$pkgver/kotlin-compiler-$pkgver.zip")
+sha256sums=("37615f1d63e8500cd33c7f3e60b715263f65189d6d8f25defba78968c896dc97")
+
+prepare() {
+ cd "${pkgname}c/bin"
+
+ setconf kotlin DIR /usr/bin
+ setconf kotlinc KOTLIN_HOME "/usr/share/$pkgname"
+ setconf kotlinc-js DIR /usr/bin
+ setconf kotlinc-jvm DIR /usr/bin
+}
+
+package() {
+ cd "${pkgname}c"
+
+ msg2 'Packaging executables...'
+ install -Dm755 bin/kotlinc "$pkgdir/usr/bin/kotlinc"
+ install -Dm755 bin/kotlin "$pkgdir/usr/bin/kotlin"
+ install -Dm755 bin/kotlinc-js "$pkgdir/usr/bin/kotlinc-js"
+ install -Dm755 bin/kotlinc-jvm "$pkgdir/usr/bin/kotlinc-jvm"
+
+ msg2 'Packaging jar files...'
+ cd "$srcdir/${pkgname}c/lib"
+ install -d "$pkgdir/usr/share/$pkgname/lib"
+ for jar in *.jar; do
+ install -Dm644 "$jar" "$pkgdir/usr/share/$pkgname/lib"
+ done
+
+ msg2 'Packaging licenses...'
+ cd "$srcdir/${pkgname}c/license"
+ 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
+ install -Dm644 "$txt" "$pkgdir/usr/share/licenses/$pkgname"
+ done
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list