aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2017-01-29 21:12:14 +0100
committerJohannes Huber <johu@gentoo.org>2017-01-29 21:12:14 +0100
commit7b9b7719afeb57f50bdd1fe806bf06c9882f80a8 (patch)
treed2ff9998bd185d7e8a8b82f895f8bb7852f248f7
parentnet-im/discord-bin: Update desktop cache (diff)
downloadjohu-7b9b7719afeb57f50bdd1fe806bf06c9882f80a8.tar.gz
johu-7b9b7719afeb57f50bdd1fe806bf06c9882f80a8.tar.bz2
johu-7b9b7719afeb57f50bdd1fe806bf06c9882f80a8.zip
net-im/discord-bin: Fix desktop file
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r--net-im/discord-bin/discord-bin-0.0.1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/net-im/discord-bin/discord-bin-0.0.1.ebuild b/net-im/discord-bin/discord-bin-0.0.1.ebuild
index f248bb4..5473000 100644
--- a/net-im/discord-bin/discord-bin-0.0.1.ebuild
+++ b/net-im/discord-bin/discord-bin-0.0.1.ebuild
@@ -59,7 +59,14 @@ src_unpack() {
unpack_deb ${A}
}
-# TODO: wrong exec path in desktop file
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s:/usr/share/discord/Discord:discord:g" \
+ usr/share/${MY_PN}/${MY_PN}.desktop || die
+}
+
src_install() {
insinto /opt/${MY_PN}
doins -r usr/.