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

View File

@ -2,8 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
require gtk-icon-cache require gtk-icon-cache
require love-app [ loveslot="0.7" lovezip=true lovepn="not_pacman" ]
LOVE_SLOT="0.7"
SUMMARY="A mashup of \"Not\" and \"Pacman\"" SUMMARY="A mashup of \"Not\" and \"Pacman\""
HOMEPAGE="http://stabyourself.net/notpacman/" HOMEPAGE="http://stabyourself.net/notpacman/"
@ -14,42 +13,11 @@ LICENCES="WTFPL-2"
SLOT="0" SLOT="0"
PLATFORMS="~amd64 ~x86" PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
build:
virtual/unzip
run:
games-engines/love:${LOVE_SLOT}
"
WORK=${WORKBASE}
src_install() { src_install() {
local dir=/usr/share/love/${PN} love-app_src_install
exeinto "${dir}"
newexe not_pacman.love ${PN}.love
dodoc README
insinto /usr/share/icons/hicolor/32x32/apps insinto /usr/share/icons/hicolor/32x32/apps
doins "${FETCHEDDIR}"/${PN}.png 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
} }