1 |
commit: f224f73f549c91c94eff6ba77973b08ccb28fa62 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 13 01:46:23 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 13 01:47:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f224f73f |
7 |
|
8 |
games-action/battalion: add desktop entry and missing || die |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
games-action/battalion/battalion-1.4b-r2.ebuild | 6 ++++-- |
13 |
1 file changed, 4 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/games-action/battalion/battalion-1.4b-r2.ebuild b/games-action/battalion/battalion-1.4b-r2.ebuild |
16 |
index 4d03d116cfb..cf5a5613754 100644 |
17 |
--- a/games-action/battalion/battalion-1.4b-r2.ebuild |
18 |
+++ b/games-action/battalion/battalion-1.4b-r2.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=8 |
22 |
|
23 |
-inherit toolchain-funcs |
24 |
+inherit desktop toolchain-funcs |
25 |
|
26 |
DESCRIPTION="Be a rampaging monster and destroy the city" |
27 |
HOMEPAGE="https://www.evl.uic.edu/aej/AndyBattalion.html" |
28 |
@@ -36,7 +36,7 @@ src_prepare() { |
29 |
-e "/getenv.*SCOREDIR/s|= .*|= \"${EPREFIX}/var/games\";|" \ |
30 |
-i battalion.c || die |
31 |
|
32 |
- sed '1s/1/6/' ../${PN}SUN4/${PN}.man > "${T}"/${PN}.6 |
33 |
+ sed '1s/1/6/' ../${PN}SUN4/${PN}.man > "${T}"/${PN}.6 || die |
34 |
|
35 |
# Only .raw sound files are used on Linux. The .au files are not needed. |
36 |
rm {SOUNDS,MUSIC}/*.au || die |
37 |
@@ -63,6 +63,8 @@ src_install() { |
38 |
fowners :gamestat /usr/bin/${PN} /var/games/${PN}_hiscore |
39 |
fperms g+s /usr/bin/${PN} |
40 |
fperms 660 /var/games/${PN}_hiscore |
41 |
+ |
42 |
+ make_desktop_entry ${PN} ${PN^} applications-games |
43 |
} |
44 |
|
45 |
pkg_postinst() { |