blob: 430312fc5c4bd836ece33dee9768049275b1cb49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Marco Pompili <aur@mg.odd.red>
pkgname=nightcode
_name=Nightcode
pkgver=2.8.3
pkgrel=1
pkgdesc="An IDE that bundles a smart editor, the Leiningen and Boot build tools, and a home screen with quick access to the Clojure cheatsheet and REPL."
arch=('any')
url="https://sekao.net/nightcode/"
license=('custom')
makedepends=('clojure')
depends=('jdk-openjdk' 'rlwrap')
conflicts=('nightcode-git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/oakes/${_name}/archive/${pkgver}.tar.gz"
"nightcode.desktop")
sha256sums=('4974343349dbd6fe036609e50ea6796185dca9fef75310d5d2ae04e2a6299097'
'aa94a3cf9028756b4bd6dbb6f9b27dc23f8aa4d29ca18507736561ef66fbd267')
noextract=('nightcode.desktop')
build() {
cd "${_name}-${pkgver}"
msg2 "Building nightcode..."
clj -A:prod uberjar linux
}
package() {
JARNAME="nightcode-${pkgver}-standalone.jar"
#artifact
install -Dm644 ${srcdir}/$_name-${pkgver}/target/$JARNAME ${pkgdir}/usr/share/java/${pkgname}/$JARNAME
#license
install -Dm644 ${srcdir}/$_name-${pkgver}/UNLICENSE ${pkgdir}/usr/share/licenses/${pkgname}/UNLICENSE
#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
install -Dm644 ${srcdir}/nightcode.desktop ${pkgdir}/usr/share/applications/nightcode.desktop
install -Dm644 ${srcdir}/${_name}-${pkgver}/package/linux/Nightcode.png ${pkgdir}/usr/share/nightcode/Nightcode.png
}
|