commit:     7fb35f6405109e46e65858a442cd264ffa5d2ff3
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Jul  7 22:37:58 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Jul  7 22:47:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fb35f64

games-util/ProtonUp-Qt: improve ebuild

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 games-util/ProtonUp-Qt/ProtonUp-Qt-2.8.1.ebuild | 6 +++++-
 games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild  | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/games-util/ProtonUp-Qt/ProtonUp-Qt-2.8.1.ebuild 
b/games-util/ProtonUp-Qt/ProtonUp-Qt-2.8.1.ebuild
index 3d9579406..325c89f29 100644
--- a/games-util/ProtonUp-Qt/ProtonUp-Qt-2.8.1.ebuild
+++ b/games-util/ProtonUp-Qt/ProtonUp-Qt-2.8.1.ebuild
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{9..12} )
 
 EPYTHON=python3
 
-inherit distutils-r1 desktop
+inherit distutils-r1 desktop xdg-utils
 
 
SRC_URI="https://github.com/DavidoTek/ProtonUp-Qt/archive/refs/tags/v${PV}.tar.gz";
 DESCRIPTION="Install and manage GE-Proton, Luxtorpeda & more for Steam and 
Wine-GE & more for Lutris with this graphical user interface."
@@ -46,3 +46,7 @@ src_install() {
     newicon -s 128 
"${WORKDIR}/${P}/share/icons/hicolor/128x128/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
     newicon -s 256 
"${WORKDIR}/${P}/share/icons/hicolor/256x256/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
 }
+
+pkg_postinst() {
+    xdg_icon_cache_update
+}

diff --git a/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild 
b/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
index f25c104cc..b4c620b0a 100644
--- a/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
+++ b/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{9..12} )
 
 EPYTHON=python3
 
-inherit git-r3 distutils-r1 desktop
+inherit git-r3 distutils-r1 desktop xdg-utils
 EGIT_REPO_URI="https://github.com/DavidoTek/ProtonUp-Qt.git";
 DESCRIPTION="Install and manage GE-Proton, Luxtorpeda & more for Steam and 
Wine-GE & more for Lutris with this graphical user interface."
 HOMEPAGE="https://davidotek.github.io/protonup-qt";
@@ -41,3 +41,7 @@ src_install() {
     newicon -s 128 
"${WORKDIR}/${P}/share/icons/hicolor/128x128/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
     newicon -s 256 
"${WORKDIR}/${P}/share/icons/hicolor/256x256/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
 }
+
+pkg_postinst() {
+    xdg_icon_cache_update
+}

Reply via email to