diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-09-12 21:46:23 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-09-12 21:47:39 -0400 |
commit | f224f73f549c91c94eff6ba77973b08ccb28fa62 (patch) | |
tree | ffbfbd7566e96aed8c3b74290e435397080b80bb /games-action/battalion | |
parent | games-action/battalion: drop 1.4b-r1 (diff) | |
download | gentoo-f224f73f549c91c94eff6ba77973b08ccb28fa62.tar.gz gentoo-f224f73f549c91c94eff6ba77973b08ccb28fa62.tar.bz2 gentoo-f224f73f549c91c94eff6ba77973b08ccb28fa62.zip |
games-action/battalion: add desktop entry and missing || die
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-action/battalion')
-rw-r--r-- | games-action/battalion/battalion-1.4b-r2.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/games-action/battalion/battalion-1.4b-r2.ebuild b/games-action/battalion/battalion-1.4b-r2.ebuild index 4d03d116cfbb..cf5a5613754a 100644 --- a/games-action/battalion/battalion-1.4b-r2.ebuild +++ b/games-action/battalion/battalion-1.4b-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit toolchain-funcs +inherit desktop toolchain-funcs DESCRIPTION="Be a rampaging monster and destroy the city" HOMEPAGE="https://www.evl.uic.edu/aej/AndyBattalion.html" @@ -36,7 +36,7 @@ src_prepare() { -e "/getenv.*SCOREDIR/s|= .*|= \"${EPREFIX}/var/games\";|" \ -i battalion.c || die - sed '1s/1/6/' ../${PN}SUN4/${PN}.man > "${T}"/${PN}.6 + sed '1s/1/6/' ../${PN}SUN4/${PN}.man > "${T}"/${PN}.6 || die # Only .raw sound files are used on Linux. The .au files are not needed. rm {SOUNDS,MUSIC}/*.au || die @@ -63,6 +63,8 @@ src_install() { fowners :gamestat /usr/bin/${PN} /var/games/${PN}_hiscore fperms g+s /usr/bin/${PN} fperms 660 /var/games/${PN}_hiscore + + make_desktop_entry ${PN} ${PN^} applications-games } pkg_postinst() { |