[Lunar-commits] <moonbase> ltris: fix file locations, perms, and desktop entry

Auke Kok sofar at foo-projects.org
Mon Sep 27 08:59:33 CEST 2010


commit fbe6083e2f6ef707d7beb682608c675aa70304c7
Author: Paul Bredbury <brebs at sent.com>
Date:   Mon Sep 27 08:59:33 2010 +0200

    ltris: fix file locations, perms, and desktop entry
---
 games/ltris/BUILD   |   18 +++++++++++++++++-
 games/ltris/DETAILS |   10 +++++-----
 2 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/games/ltris/BUILD b/games/ltris/BUILD
index 18b4aea..cccaf62 100644
--- a/games/ltris/BUILD
+++ b/games/ltris/BUILD
@@ -1,5 +1,21 @@
 (
 
-  default_game_build
+  cp icons/ltris48.xpm .  &&
+
+  default_game_config  &&
+
+  # Untangle Makefile, and use xpm icon
+  sed -i -e "s:/usr/share/games/locale:/usr/share/locale:" \
+         -e "s:localedir = \$(datadir)/locale:localedir = /usr/share/locale:" \
+         -e "s:icondir = \$(datadir)/icons:icondir = /usr/share/icons:" \
+         -e "s:ltris48.gif:ltris48.xpm:" \
+         -e "s:\$(datadir)/icons/ltris48.xpm:ltris48:" \
+         -e "s:desktopdir = \$(datadir)/applications:desktopdir = /usr/share/applications:" Makefile po/Makefile intl/Makefile  &&
+
+  default_make  &&
+
+  # Fix permissions on hiscore file
+  chown root:games /var/games/ltris.hscr  &&
+  chmod 660        /var/games/ltris.hscr
 
 ) > $C_FIFO 2>&1
diff --git a/games/ltris/DETAILS b/games/ltris/DETAILS
index ae43807..ac12d6f 100644
--- a/games/ltris/DETAILS
+++ b/games/ltris/DETAILS
@@ -9,12 +9,12 @@
            SHORT="A tetris clone"
 
 cat << EOF
-LTris as a tetris clone which means you have a bowl with blocks falling
-down. By rotating and moving the blocks you try to assemble whole lines
+LTris is a tetris clone which means you have a bowl with blocks falling
+down. By rotating and moving the blocks, you try to assemble whole lines
 which then disappear. LTris has three modes for this: Classic is the
 classical one where you play until the bowl becomes filled, Figures
-resets the bowl contents to a new figure for each level and adds
-suddenly appearing tiles and lines later on and Multiplayer where up to
-three players either controlled by human or CPU(!) compete and send
+reset the bowl contents to a new figure for each level and adds
+suddenly-appearing tiles and lines later on, and Multiplayer where up to
+three players either controlled by humans or CPU(!) compete and send
 completed lines to each other.
 EOF


More information about the Lunar-commits mailing list