games-rpg/flare: fix desktop file

This commit is contained in:
hasufell 2016-02-16 19:03:30 +01:00
parent b9563f4a65
commit b0c80cfde6
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -23,18 +23,24 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
-DDATADIR=/usr/share/${PN}
)
src_prepare() {
edo sed -i \
-e "/Exec/s#@FLARE_EXECUTABLE_PATH@#flare#" \
distribution/flare.desktop.in
}
src_install() {
cmake_src_install
herebin ${PN}-game <<EOF
#!/bin/sh
exec flare --game=flare-game "\$@"
EOF
insinto /usr/share/applications
hereins ${PN}.desktop <<EOF
[Desktop Entry]
Name=Flare (game)
Type=Application
Comment=Free/Libre Action Roleplaying game
Exec=flare-game
TryExec=flare-game
Icon=flare
Categories=Game;RolePlaying;
EOF
dodoc README