Skip to content

Instantly share code, notes, and snippets.

@brynedwards
Created January 26, 2016 10:30
Show Gist options
  • Save brynedwards/716884d706b3f8489292 to your computer and use it in GitHub Desktop.
Save brynedwards/716884d706b3f8489292 to your computer and use it in GitHub Desktop.
kotlinc PKGBUILD
# Maintainer: Romain Gautier <romain dot gautier at nimamoh dot com>
pkgname=kotlinc
pkgver=1.0.0_beta
pkgrel=4589
pkgdesc="Kotlin compiler"
arch=('any')
url="https://github.com/JetBrains/kotlin/releases/tag/build-${pkgver//_/-}-$pkgrel"
license=('apache')
groups=()
depends=('java-environment>=6' 'bash')
source=("https://github.com/JetBrains/kotlin/releases/download/build-${pkgver//_/-}-$pkgrel/kotlin-compiler-${pkgver//_/-}-$pkgrel.zip")
sha256sums=('021f385ec14e1ef2863d6749433a561a0fc5b08811420c4cbb20ed1678538e10')
package() {
cd "$srcdir"
mkdir -p "${pkgdir}/opt/${pkgname}"
mkdir -p "${pkgdir}/usr/bin"
cp -R "${srcdir}/kotlinc/"* "${pkgdir}/opt/${pkgname}"
ln -s "/opt/kotlinc/bin/kotlinc" "${pkgdir}/usr/bin"
ln -s "/opt/kotlinc/bin/kotlinc-jvm" "${pkgdir}/usr/bin"
ln -s "/opt/kotlinc/bin/kotlinc-js" "${pkgdir}/usr/bin"
}
# vim:set ts=2 sw=2 et:&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment