commit:     302c55bbfaac24037f70f8a40e985f296d73ab70
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Sun May  1 13:16:03 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun May  1 13:16:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=302c55bb

games-misc/an-anime-game-launcher-bin: did an oopsie

Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>

 .../an-anime-game-launcher-bin-2.3.1.ebuild                   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.1.ebuild 
b/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.1.ebuild
index 0b3c56344..d26efcf26 100644
--- 
a/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.1.ebuild
+++ 
b/games-misc/an-anime-game-launcher-bin/an-anime-game-launcher-bin-2.3.1.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=8
 
+inherit xdg-utils
+
 DESCRIPTION="Open Source An Anime Game launcher for Linux with automatic 
anti-cheat patching and telemetry disabling"
 HOMEPAGE="https://gitlab.com/an-anime-team/an-anime-game-launcher";
 
SRC_URI="https://gitlab.com/an-anime-team/aagl-ebuilds/-/archive/${PV}/aagl-ebuilds-${PV}.tar.gz";
@@ -46,7 +48,7 @@ src_prepare(){
 }
 
 src_install(){
-       dodir "/usr/lib/${PN}"
+       insinto "/usr/lib/${PN}"
        einfo "Inserting Launcher Files"
        doins -r "squashfs-root/resources.neu"
        einfo "Inserting Launcher Binary"
@@ -69,3 +71,10 @@ src_install(){
        einfo "Setting Read Permissions for Launcher Files"
        chmod -R 775 "${D}/usr/lib/${PN}/public"
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+}
+pkg_postrm() {
+       xdg_desktop_database_update
+}

Reply via email to