summaryrefslogtreecommitdiff
path: root/ganttproject
diff options
context:
space:
mode:
Diffstat (limited to 'ganttproject')
-rw-r--r--ganttproject/PKGBUILD41
-rw-r--r--ganttproject/ganttproject.desktop9
2 files changed, 50 insertions, 0 deletions
diff --git a/ganttproject/PKGBUILD b/ganttproject/PKGBUILD
new file mode 100644
index 000000000..ca2d9f2b8
--- /dev/null
+++ b/ganttproject/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: SanskritFritz (gmail)
+# Contributor: Grigoris Pavlakis (aur.archlinux.org/account/lightspot21)
+# Contributor: zertyz <zertyz@gmail.com>
+# Contributor: craeckie (aur.archlinux.org/account/craeckie)
+# Contributor: Oliver Kahrmann <oliver.kahrmann@gmail.com>
+# Original Author: David Fuhr <david.fuhr@web.de>
+
+pkgname=ganttproject
+_version=3.2
+_build=3240
+pkgver=$_version.$_build
+pkgrel=1
+pkgdesc="A project scheduling application featuring gantt chart, resource management, calendaring."
+arch=('i686' 'x86_64')
+url="https://www.ganttproject.biz/"
+license=("GPL")
+depends=('jre11-openjdk' 'java11-openjfx' 'hicolor-icon-theme')
+makedepends=('unzip')
+source=("https://dl.ganttproject.biz/$pkgname-$pkgver/$pkgname-$pkgver.zip"
+ "ganttproject.desktop")
+
+prepare() {
+ # add JavaFX path to startup script
+ sed -i '/^BOOT_CLASS/ aJFX_ARGS="--module-path \/usr\/lib\/jvm\/java-11-openjfx\/lib\/ --add-modules=ALL-MODULE-PATH"' $srcdir/ganttproject-$pkgver/ganttproject
+ sed -i '/^JAVA_ARGS/ s/$DEBUG_ARGS/$DEBUG_ARGS $JFX_ARGS/' $srcdir/ganttproject-$pkgver/ganttproject
+}
+
+package() {
+ mkdir -p "$pkgdir/opt/"
+ cp --recursive "$srcdir/ganttproject-$pkgver" "$pkgdir/opt/$pkgname"
+
+ chmod 755 "$pkgdir/opt/$pkgname/ganttproject"
+ install -D -m0644 "$srcdir/ganttproject.desktop" "$pkgdir/usr/share/applications/ganttproject.desktop"
+ install -D -m0644 "$srcdir/ganttproject-$pkgver/plugins/base/ganttproject/resources/icons/ganttproject.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/ganttproject.png"
+ mkdir -p "$pkgdir/usr/bin"
+ ln -s "/opt/$pkgname/ganttproject" "$pkgdir/usr/bin/ganttproject"
+}
+
+sha256sums=('38dbddaf4c55ff7731e3a061dde9a8b38236789409ee3b5ab8228d96688748bd'
+ '7f80539115a2ffa518516671596b7e35659d46c91ac39133cc5accda9dec3862')
diff --git a/ganttproject/ganttproject.desktop b/ganttproject/ganttproject.desktop
new file mode 100644
index 000000000..e6110e320
--- /dev/null
+++ b/ganttproject/ganttproject.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Ganttproject
+Comment=GanttProject is a project scheduling application featuring gantt chart, resource management, calendaring
+Icon=ganttproject
+Exec=/opt/ganttproject/ganttproject %F
+Terminal=false
+Type=Application
+Categories=Application;Office;
+StartupNotify=true