media-sound/mpd: call xdg
authorMikle Kolyada <zlogene@gentoo.org>
Sun, 29 Sep 2019 18:12:53 +0000 (21:12 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Sun, 29 Sep 2019 18:12:53 +0000 (21:12 +0300)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
media-sound/mpd/mpd-0.21.14.ebuild
media-sound/mpd/mpd-0.21.15.ebuild

index c886ec4ed037a4f844fbed8016ee250dfcf98e1a..16b37d262a4fccca96309e07b9fe2accb8dd5ad6 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit flag-o-matic linux-info meson systemd user
+inherit flag-o-matic linux-info meson systemd user xdg-utils
 
 DESCRIPTION="The Music Player Daemon (mpd)"
 HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
@@ -291,4 +291,9 @@ src_install() {
 pkg_postinst() {
        # also change the homedir if the user has existed before
        usermod -d "/var/lib/mpd" mpd || die "usermod failed"
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
 }
index 984310bc5363ec53311dac575037c30376968353..1d1dabe992f551b82ab35734116e6a9ca20f2767 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit flag-o-matic linux-info meson systemd user
+inherit flag-o-matic linux-info meson systemd user xdg-utils
 
 DESCRIPTION="The Music Player Daemon (mpd)"
 HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
@@ -291,4 +291,9 @@ src_install() {
 pkg_postinst() {
        # also change the homedir if the user has existed before
        usermod -d "/var/lib/mpd" mpd || die "usermod failed"
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
 }