Last active
January 25, 2020 19:46
-
-
Save founderio/120eea6f29cb28cff160121c2acd3263 to your computer and use it in GitHub Desktop.
Patch for https://aur.archlinux.org/packages/ganttproject/ to support icon theming
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 63f287df2c9d81946dda118a3af9c3634bbe8621 Mon Sep 17 00:00:00 2001 | |
From: Oliver Kahrmann <oliver.kahrmann@gmail.com> | |
Date: Sat, 25 Jan 2020 20:35:41 +0100 | |
Subject: [PATCH] Install & use app icon to support icon themes | |
Hardcoding an icon path prevents icon themes | |
from correctly replacing the app icon. | |
--- | |
PKGBUILD | 11 ++++------- | |
ganttproject.desktop | 2 +- | |
2 files changed, 5 insertions(+), 8 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 55a4cd1..dfedf2e 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,12 +1,13 @@ | |
# Maintainer: SanskritFritz (gmail) | |
# 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 | |
pkgver=2.8.10 | |
_build=r2364 | |
-pkgrel=2 | |
+pkgrel=3 | |
pkgdesc="A project scheduling application featuring gantt chart, resource management, calendaring." | |
arch=('i686' 'x86_64') | |
url="http://www.ganttproject.biz/" | |
@@ -16,20 +17,16 @@ makedepends=('unzip') | |
source=("http://dl.ganttproject.biz/$pkgname-$pkgver/$pkgname-$pkgver-$_build.zip" | |
"ganttproject.desktop") | |
-prepare() { | |
- sed -i "s|__PKGVER__|$pkgver|g" 'ganttproject.desktop' | |
- | |
-} | |
- | |
package() { | |
mkdir -p "$pkgdir/opt/" | |
cp --recursive "$srcdir/ganttproject-$pkgver-$_build" "$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" | |
mkdir -p "$pkgdir/usr/bin" | |
ln -s "/opt/$pkgname/ganttproject" "$pkgdir/usr/bin/ganttproject" | |
} | |
md5sums=('aa04f3318403d6d3a0dbb2749f055942' | |
- '48414b17ae6d8c7ddc29d8e2094d86e5') | |
+ '5139adddebc92d9da94b8448176d4d21') | |
diff --git a/ganttproject.desktop b/ganttproject.desktop | |
index 1c3966d..e6110e3 100644 | |
--- a/ganttproject.desktop | |
+++ b/ganttproject.desktop | |
@@ -1,7 +1,7 @@ | |
[Desktop Entry] | |
Name=Ganttproject | |
Comment=GanttProject is a project scheduling application featuring gantt chart, resource management, calendaring | |
-Icon=/opt/ganttproject/plugins-__PKGVER__/ganttproject/data/resources/icons/ganttproject.png | |
+Icon=ganttproject | |
Exec=/opt/ganttproject/ganttproject %F | |
Terminal=false | |
Type=Application | |
-- | |
2.24.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment