Last active
January 16, 2022 19:20
-
-
Save lightspot21/804e9fde09b46e8653ce1aa4ae67187c to your computer and use it in GitHub Desktop.
Update ganttproject to version 3.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From db732c9e13980ebb3dd7914a4f3570704066fcad Mon Sep 17 00:00:00 2001 | |
From: Grigoris Pavlakis <aur.archlinux.org/account/lightspot21> | |
Date: Tue, 16 Feb 2021 00:02:00 +0200 | |
Subject: [PATCH] Update to upstream version 3.0 | |
--- | |
PKGBUILD | 24 ++++++++++++++++-------- | |
1 file changed, 16 insertions(+), 8 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 89a5cb3..38134b0 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -2,31 +2,39 @@ | |
# Contributor: zertyz <zertyz@gmail.com> | |
# Contributor: craeckie (aur.archlinux.org/account/craeckie) | |
# Contributor: Oliver Kahrmann <oliver.kahrmann@gmail.com> | |
+# Contributor: Grigoris Pavlakis <grigpavl@ece.auth.gr> | |
# Original Author: David Fuhr <david.fuhr@web.de> | |
pkgname=ganttproject | |
-pkgver=2.8.11 | |
-_build=r2396 | |
-pkgrel=2 | |
+_version=3.0 | |
+_build=3000 | |
+pkgver=$_version.$_build | |
+pkgrel=1 | |
pkgdesc="A project scheduling application featuring gantt chart, resource management, calendaring." | |
arch=('i686' 'x86_64') | |
url="http://www.ganttproject.biz/" | |
license=("GPL") | |
-depends=('java-runtime') | |
+depends=('jre11-openjdk' 'java11-openjfx' 'hicolor-icon-theme') | |
makedepends=('unzip') | |
-source=("http://dl.ganttproject.biz/$pkgname-$pkgver/$pkgname-$pkgver-$_build.zip" | |
+source=("http://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-$_build" "$pkgdir/opt/$pkgname" | |
+ 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-$_build/plugins/$pkgver/ganttproject/data/resources/icons/ganttproject.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/ganttproject.png" | |
+ 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" | |
} | |
-md5sums=('8d7ceb2dd751034af97f5c62bec8a67e' | |
+md5sums=('adcb40b3b9c1298f28a5d72168b9e12d' | |
'5139adddebc92d9da94b8448176d4d21') | |
-- | |
2.30.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment