games-roguelike/FTL: use desktop-utils.exlib

This commit is contained in:
Julian Ospald 2016-05-26 14:53:36 +02:00
parent 13a9a6a103
commit fed2a2946b
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 4 additions and 11 deletions

View File

@ -1,6 +1,8 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require desktop-utils
SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game"
HOMEPAGE="http://www.ftlgame.com/"
DOWNLOADS="manual: FTL.${PV}.tar.gz"
@ -58,17 +60,8 @@ fi
exec /opt/FTL/bin/FTL "$@"
EOF
insinto /usr/share/applications/
hereins ${PN}.desktop << EOF
[Desktop Entry]
Name=Faster Than Light
Type=Application
Comment=${SUMMARY}
Exec=${PN}
TryExec=${PN}
Icon=/usr/share/pixmaps/FTL.bmp
Categories=Game;RolePlaying;
EOF
install_desktop_entry "Name=Faster Than Light" \
"Icon=/usr/share/pixmaps/FTL.bmp"
insinto /usr/share/pixmaps
newins data/resources/exe_icon.bmp FTL.bmp