summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Michel2018-01-06 11:22:41 +0100
committerRaphael Michel2018-01-06 11:22:41 +0100
commitbe481a84004233d6004b821a3cc305480e1c0810 (patch)
tree93f1e989d9db33690b3b4c882d02b48946d6cdbb
parent95a5189f25712ae02b07d53cc8fb2e998e76dee5 (diff)
downloadaur-be481a84004233d6004b821a3cc305480e1c0810.tar.gz
Add desktop file
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
-rw-r--r--launcher2
-rw-r--r--pretixdesk.desktop6
4 files changed, 12 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index db3ea84bff2..55480d67f6a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,6 +16,8 @@ pkgbase = pretixdesk-git
source = git+https://github.com/pretix/pretixdesk.git
source = git+https://github.com/pretix/libpretixsync.git
source = launcher
+ source = pretixdesk.desktop
+ sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 45fc351a261..1b403bd6f9f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,10 +9,10 @@ license=('GPL')
url="https://pretix.eu"
depends=('jdk>=9' 'bash' 'sqlite')
makedepends=('jdk>=9' 'gradle')
-source=('git+https://github.com/pretix/pretixdesk.git' 'git+https://github.com/pretix/libpretixsync.git' 'launcher')
+source=('git+https://github.com/pretix/pretixdesk.git' 'git+https://github.com/pretix/libpretixsync.git' 'launcher' 'pretixdesk.desktop')
conflicts=('pretixdesk')
provides=('pretixdesk')
-sha256sums=('SKIP' 'SKIP' 'SKIP')
+sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${_pkgname}"
@@ -36,6 +36,7 @@ prepare() {
package() {
install -d "${pkgdir}/usr/bin"
install -Dm 755 launcher "${pkgdir}/usr/bin/pretixdesk"
+ install -Dm 644 pretixdesk.desktop "${pkgdir}/usr/share/applications/pretixdesk.desktop"
cd "${srcdir}/${_pkgname}/pretixdesk"
install -Dm 644 "build/libs/pretixdesk.jar" "${pkgdir}/usr/share/java/${_pkgname}/pretixdesk.jar"
diff --git a/launcher b/launcher
index dc6fcbf4ee8..0c9afaa37a3 100644
--- a/launcher
+++ b/launcher
@@ -1,4 +1,4 @@
#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-9-jdk
-$JAVA_HOME/bin/java -jar /usr/share/java/pretixdesk/pretixdesk.jar
+$JAVA_HOME/bin/java -jar /usr/share/java/pretixdesk/pretixdesk.jar $*
diff --git a/pretixdesk.desktop b/pretixdesk.desktop
new file mode 100644
index 00000000000..3cede4cfa45
--- /dev/null
+++ b/pretixdesk.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=pretixdesk
+Exec=pretixdesk %u
+Type=Application
+Terminal=false
+MimeType=x-scheme-handler/pretixdesk;