summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Corbatto2017-08-28 14:36:43 +0200
committerLuca Corbatto2017-08-28 14:40:47 +0200
commit3f3ae7fa54abfb5893fab2972ecae06f861576ff (patch)
tree52bbaabf63c4b604ea6d468ce6261fcc74a356a3
downloadaur-uberspatchboard-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD41
-rw-r--r--UberSpatchBoard.desktop10
-rw-r--r--UberSpatchBoard.install7
-rwxr-xr-xUberSpatchBoard.sh2
6 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..edcf905cf99
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = uberspatchboard-git
+ pkgdesc = The UberSpatchBoard is the ultimate fuelrats spatching aid.
+ pkgver = 1.0.alpha.3.r0.g58b7406
+ pkgrel = 1
+ url = https://github.com/targodan/UberSpatchBoard
+ install = UberSpatchBoard.install
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = java-runtime>=8
+ depends = java-runtime>=8
+ source = git://github.com/targodan/UberSpatchBoard.git
+ source = UberSpatchBoard.desktop
+ source = UberSpatchBoard.sh
+ sha256sums = SKIP
+ sha256sums = 2cb520230edc0485b476eb4a1f50c356a0e8bc4f3611f587920cb0d217207bc8
+ sha256sums = 5270d22ccb0d66cc2e265dc90d4aabe8e6674c076b6d62d78da63a041530f6a0
+
+pkgname = uberspatchboard-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6d5660660ca
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src/
+pkg/
+UberSpatchBoard/
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7b9f93b307c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Luca Corbatto <luca-arch@corbatto.de>
+_pkgname=UberSpatchBoard
+pkgname=uberspatchboard-git
+pkgver=1.0.alpha.3.r0.g58b7406
+pkgrel=1
+pkgdesc="The UberSpatchBoard is the ultimate fuelrats spatching aid."
+arch=(i686 x86_64)
+url="https://github.com/targodan/UberSpatchBoard"
+license=('MIT')
+depends=('java-runtime>=8')
+makedepends=('java-runtime>=8')
+install=$_pkgname.install
+source=(
+ 'git://github.com/targodan/UberSpatchBoard.git'
+ 'UberSpatchBoard.desktop'
+ 'UberSpatchBoard.sh')
+sha256sums=('SKIP'
+ '2cb520230edc0485b476eb4a1f50c356a0e8bc4f3611f587920cb0d217207bc8'
+ '5270d22ccb0d66cc2e265dc90d4aabe8e6674c076b6d62d78da63a041530f6a0')
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ ./gradlew fatJar
+}
+
+package() {
+ install -D -m 0755 "UberSpatchBoard.sh" "$pkgdir/usr/bin/UberSpatchBoard"
+ install -D -m 0644 "UberSpatchBoard.desktop" "$pkgdir/usr/share/applications/UberSpatchBoard.desktop"
+
+ cd "$srcdir/$_pkgname"
+
+ mv build/libs/UberSpatchBoard-all-*.jar "build/libs/UberSpatchBoard.jar"
+ install -D -m 0755 "build/libs/UberSpatchBoard.jar" "$pkgdir/usr/share/java/UberSpatchBoard/UberSpatchBoard.jar"
+}
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g;s/_/./g'
+}
diff --git a/UberSpatchBoard.desktop b/UberSpatchBoard.desktop
new file mode 100644
index 00000000000..bd23b849b83
--- /dev/null
+++ b/UberSpatchBoard.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=UberSpatchBoard
+Comment=The ultimate fuelrats dispatch aid.
+Exec=UberSpatchBoard
+Icon=UberSpatchBoard
+Terminal=false
+StartupNotify=true
+Categories=Application
diff --git a/UberSpatchBoard.install b/UberSpatchBoard.install
new file mode 100644
index 00000000000..d9b58290d66
--- /dev/null
+++ b/UberSpatchBoard.install
@@ -0,0 +1,7 @@
+post_install() {
+ update-desktop-database
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/UberSpatchBoard.sh b/UberSpatchBoard.sh
new file mode 100755
index 00000000000..e061e7199ce
--- /dev/null
+++ b/UberSpatchBoard.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec /usr/bin/java -jar '/usr/share/java/UberSpatchBoard/UberSpatchBoard.jar' --config "~/.config/UberSpatchBoard.yml" "$@"