diff options
author | Marco Pompili | 2016-07-28 11:24:12 +0200 |
---|---|---|
committer | Marco Pompili | 2016-07-28 11:24:12 +0200 |
commit | 8b0a2ef4534b446b51c383018fed5af3ffb17079 (patch) | |
tree | 1f25564d753011c95218c44cd1c0d84ad5137da0 | |
download | aur-8b0a2ef4534b446b51c383018fed5af3ffb17079.tar.gz |
Version 2.0.2
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | nightcode.desktop | 9 |
4 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b4937c7771c9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Thu Jul 28 09:07:32 UTC 2016 +pkgbase = nightcode + pkgdesc = A simple IDE for Clojure and ClojureScript. + pkgver = 2.0.2 + pkgrel = 1 + url = https://sekao.net/nightcode/ + arch = any + license = UNILICENSE + depends = java-runtime>7 + depends = java-openjfx + conflicts = nightcode-git + noextract = boot.sh + source = https://github.com/oakes/Nightcode/archive/2.0.2.tar.gz + source = https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh + source = nightcode.desktop + sha256sums = be6a2d7263e7d0320a4f05dda3fbdbcef2a85c28493c989cb0d19df5aba182d8 + sha256sums = 895def8ef37f4b78bb37a26566ce970dc24219e880154a18ef7ade5a778d3a2f + sha256sums = SKIP + +pkgname = nightcode + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..eb86e813e036 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src/ +pkg/ +*.tar.gz +*.pkg.tar.xz +boot.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..449de0c61bad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Marco Pompili <aur@emarcs.org> + +pkgname=nightcode +_name=Nightcode +pkgver=2.0.2 +pkgrel=1 +pkgdesc="A simple IDE for Clojure and ClojureScript." +arch=('any') +url="https://sekao.net/nightcode/" +license=('UNILICENSE') +depends=('java-runtime>7' 'java-openjfx') +conflicts=('nightcode-git') +source=("https://github.com/oakes/Nightcode/archive/$pkgver.tar.gz" + "https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh" + "nightcode.desktop") +noextract=('boot.sh') +sha256sums=('be6a2d7263e7d0320a4f05dda3fbdbcef2a85c28493c989cb0d19df5aba182d8' + '895def8ef37f4b78bb37a26566ce970dc24219e880154a18ef7ade5a778d3a2f' + 'SKIP') + +build() { + cd "$_name-$pkgver" + msg2 "Building nightcode..." + bash $srcdir/boot.sh build +} + +package() { + JARNAME="nightcode-standalone.jar" + + #artifact + mkdir -p "$pkgdir/usr/share/java/nightcode/" + install -Dm644 "$srcdir/$_name-$pkgver/target/project.jar" "$pkgdir/usr/share/java/$pkgname/$JARNAME" + + #license + mkdir -p "$pkgdir/usr/share/licenses/nightcode/" + install -Dm644 $srcdir/$_name-$pkgver/UNLICENSE "$pkgdir/usr/share/licenses/$pkgname/" + + #launcher + mkdir -p "$pkgdir/usr/bin/" + echo '#!/bin/sh' > "$pkgdir/usr/bin/nightcode" + echo 'java -Xmx512m -jar /usr/share/java/nightcode/'$JARNAME' $@' >> "$pkgdir/usr/bin/nightcode" + chmod 755 "$pkgdir/usr/bin/nightcode" + + #icon + mkdir -p "$pkgdir/usr/share/applications/" + install -Dm644 $srcdir/nightcode.desktop "$pkgdir/usr/share/applications" +} diff --git a/nightcode.desktop b/nightcode.desktop new file mode 100644 index 000000000000..b76447cfb5b9 --- /dev/null +++ b/nightcode.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Nightcode +Comment=A handy tool for your Clojure adventures +Type=Application +Icon=nightcode +Exec=nightcode +Categories=Utility;TextEditor;Development +Terminal=false +MimeType=text/plain; |