summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Michel2018-01-06 11:05:07 +0100
committerRaphael Michel2018-01-06 11:05:07 +0100
commit95a5189f25712ae02b07d53cc8fb2e998e76dee5 (patch)
tree9d95048804ac2f72c064af9c88358992defa1841
downloadaur-95a5189f25712ae02b07d53cc8fb2e998e76dee5.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD43
-rw-r--r--launcher4
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..db3ea84bff2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = pretixdesk-git
+ pkgdesc = Desktop application for attendee check-in with the pretix ticketing system
+ pkgver = r71.a61e9c1
+ pkgrel = 1
+ url = https://pretix.eu
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = jdk>=9
+ makedepends = gradle
+ depends = jdk>=9
+ depends = bash
+ depends = sqlite
+ provides = pretixdesk
+ conflicts = pretixdesk
+ source = git+https://github.com/pretix/pretixdesk.git
+ source = git+https://github.com/pretix/libpretixsync.git
+ source = launcher
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = pretixdesk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..45fc351a261
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Raphael Michel <mail@raphaelmichel.de>
+_pkgname=pretixdesk
+pkgname=$_pkgname-git
+pkgver=r71.a61e9c1
+pkgrel=1
+pkgdesc="Desktop application for attendee check-in with the pretix ticketing system"
+arch=('i686' 'x86_64')
+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')
+conflicts=('pretixdesk')
+provides=('pretixdesk')
+sha256sums=('SKIP' 'SKIP' 'SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}/pretixdesk"
+ git submodule init
+ JAVA_HOME=/usr/lib/jvm/java-9-jdk ./gradlew build fatJar
+}
+
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ git submodule init
+ git config submodule.libpretixsync.url $srcdir/libpretixsync
+ git submodule update
+}
+
+package() {
+ install -d "${pkgdir}/usr/bin"
+ install -Dm 755 launcher "${pkgdir}/usr/bin/pretixdesk"
+
+ cd "${srcdir}/${_pkgname}/pretixdesk"
+ install -Dm 644 "build/libs/pretixdesk.jar" "${pkgdir}/usr/share/java/${_pkgname}/pretixdesk.jar"
+ install -Dm 644 ../LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}
diff --git a/launcher b/launcher
new file mode 100644
index 00000000000..dc6fcbf4ee8
--- /dev/null
+++ b/launcher
@@ -0,0 +1,4 @@
+#!/bin/sh
+export JAVA_HOME=/usr/lib/jvm/java-9-jdk
+$JAVA_HOME/bin/java -jar /usr/share/java/pretixdesk/pretixdesk.jar
+