mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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 <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user