From 18e2ba93d4bceb85b83d3ea7e491820e50b1677d Mon Sep 17 00:00:00 2001 From: dsaf Date: Wed, 25 Mar 2026 01:22:05 -0300 Subject: [PATCH] games-util/leshade: fix QA * Patch desktop file to match with installed icon * Remove unwanted files and duplicates * Install metainfo * Use xdg eclass for post install hooks Signed-off-by: dsaf --- games-util/leshade/leshade-2.4.0.ebuild | 16 +++++++++++++++- games-util/leshade/leshade-9999.ebuild | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/games-util/leshade/leshade-2.4.0.ebuild b/games-util/leshade/leshade-2.4.0.ebuild index 87000a15c6..88d74fb1b6 100644 --- a/games-util/leshade/leshade-2.4.0.ebuild +++ b/games-util/leshade/leshade-2.4.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{12..14} ) -inherit meson python-single-r1 +inherit meson python-single-r1 xdg MY_PN="LeShade" MY_P=${MY_PN}-${PV} @@ -43,4 +43,18 @@ src_prepare() { if [[ ${PV} == *9999 ]] ; then sed -i "s/^build_type: str = .*/build_type: str = \"Nightly\"/" main.py || die fi + + sed -i 's/^Icon=.*/Icon=leshade/' flatpak/io.github.ishidawg.LeShade.desktop +} + +src_install() { + meson_src_install + + rm "${ED}/usr/share/${PN}/assets/"* + rm -r "${ED}/usr/share/licenses" + + dosym ../../icons/hicolor/256x256/apps/${PN}.png /usr/share/${PN}/assets/logo.png + + insinto /usr/share/metainfo + doins flatpak/io.github.ishidawg.LeShade.metainfo.xml } diff --git a/games-util/leshade/leshade-9999.ebuild b/games-util/leshade/leshade-9999.ebuild index 87000a15c6..88d74fb1b6 100644 --- a/games-util/leshade/leshade-9999.ebuild +++ b/games-util/leshade/leshade-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{12..14} ) -inherit meson python-single-r1 +inherit meson python-single-r1 xdg MY_PN="LeShade" MY_P=${MY_PN}-${PV} @@ -43,4 +43,18 @@ src_prepare() { if [[ ${PV} == *9999 ]] ; then sed -i "s/^build_type: str = .*/build_type: str = \"Nightly\"/" main.py || die fi + + sed -i 's/^Icon=.*/Icon=leshade/' flatpak/io.github.ishidawg.LeShade.desktop +} + +src_install() { + meson_src_install + + rm "${ED}/usr/share/${PN}/assets/"* + rm -r "${ED}/usr/share/licenses" + + dosym ../../icons/hicolor/256x256/apps/${PN}.png /usr/share/${PN}/assets/logo.png + + insinto /usr/share/metainfo + doins flatpak/io.github.ishidawg.LeShade.metainfo.xml }