games-arcade/notpacman: use love-app.exlib

This commit is contained in:
Julian Ospald 2016-02-28 19:33:03 +01:00
parent a0828458a6
commit 8c02719288
1 changed files with 2 additions and 34 deletions

View File

@ -2,8 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
require gtk-icon-cache
LOVE_SLOT="0.7"
require love-app [ loveslot="0.7" lovezip=true lovepn="not_pacman" ]
SUMMARY="A mashup of \"Not\" and \"Pacman\""
HOMEPAGE="http://stabyourself.net/notpacman/"
@ -14,42 +13,11 @@ LICENCES="WTFPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
build:
virtual/unzip
run:
games-engines/love:${LOVE_SLOT}
"
WORK=${WORKBASE}
src_install() {
local dir=/usr/share/love/${PN}
exeinto "${dir}"
newexe not_pacman.love ${PN}.love
dodoc README
love-app_src_install
insinto /usr/share/icons/hicolor/32x32/apps
doins "${FETCHEDDIR}"/${PN}.png
herebin ${PN} << EOF
#!/bin/sh
cd "${dir}"
exec love-${LOVE_SLOT} ${PN}.love "\$@"
EOF
insinto /usr/share/applications
hereins ${PN}.desktop << EOF
[Desktop Entry]
Name=${PN}
Type=Application
Comment=${SUMMARY}
Exec=${PN}
TryExec=${PN}
Icon=${PN}
Categories=Game;ArcadeGame;
EOF
}