games-util/samrewritten-1.2.2 : Fixed steam installation detection && Added desktop and icon XDG files

This commit is contained in:
saundersp
2026-02-04 23:51:03 +01:00
parent 93e431b9c6
commit 1fb5e138f9
4 changed files with 41 additions and 6 deletions

View File

@@ -267,7 +267,7 @@ CRATES="
RUST_MIN_VER="1.88.0"
inherit cargo
inherit desktop gnome2-utils cargo
DESCRIPTION="Steam Achievement Manager rewritten For Linux"
HOMEPAGE="https://github.com/PaulCombal/SamRewritten/"
@@ -294,6 +294,27 @@ DEPEND="
net-libs/gnutls
"
PATCHES=(
"${FILESDIR}/follow_symlinks_installation.patch"
)
src_install(){
cargo_src_install
insinto /usr/share/glib-2.0/schemas
doins assets/org.samrewritten.SamRewritten.gschema.xml
domenu package/samrewritten.desktop
newicon -s 64 assets/icon_64.png "${PN}".png
newicon -s 256 assets/icon_256.png "${PN}".png
}
pkg_postinst() {
gnome2_schemas_update
xdg_desktop_database_update
ewarn "${P} requires Steam to be installed through the steam-overlay."
}
pkg_postrm() {
gnome2_schemas_update
xdg_desktop_database_update
}