[Lunar-commits] <moonbase> alienarena: correct file names & locations

Paul Bredbury brebs at lunar-linux.org
Sun Aug 30 12:43:39 CEST 2009


commit 6d8c1e4f5fbb0dcf36df0f61927cc5b1d9f03f26
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Sun Aug 30 17:43:39 2009 +0700

    alienarena: correct file names & locations
    
    Using /usr/games, /usr/share/games and /usr/lib.
    
    And using sane executable filenames, rather than the legacy crx and crded.
---
 games/alienarena/BUILD   |   62 +++++++++++++++++++++++++++++++---------------
 games/alienarena/DETAILS |   10 +++---
 2 files changed, 47 insertions(+), 25 deletions(-)

diff --git a/games/alienarena/BUILD b/games/alienarena/BUILD
index 2b4c187..fac5243 100644
--- a/games/alienarena/BUILD
+++ b/games/alienarena/BUILD
@@ -1,34 +1,56 @@
 (
 
-  INST_DIR="/usr/games/${MODULE}"
+  DATADIR="/usr/share/games/$MODULE"  &&
+  LIBDIR="/usr/lib/$MODULE"  &&
 
-  # Remove some pre-compiled libs
-  rm {arena,data1}/game.so  &&
+  # Remove some pre-compiled libs, to ensure they are recompiled
+  rm crx crded {arena,data1}/game.so  &&
 
-  cd source     &&
-  default_make  &&
+  cd source  &&
 
-  if [ ! -d $INST_DIR ]; then
-    mkdir -p $INST_DIR
-  fi  &&
+  # Lunar isn't multilib
+  sedit "s:lib64:lib:" Makefile  &&
 
-  cd $SOURCE_DIRECTORY
-  # opengl seems more stable, but may vary
-  install -D -m755 crx ${INST_DIR}/      &&
-  install -D -m755 crded ${INST_DIR}/    &&
+  # Using ARCH=unknown, to prevent Makefile from setting -march flag
+  make \
+    PREFIX=/usr WITH_DATADIR=yes WITH_LIBDIR=yes ARCH=unknown \
+    DATADIR="$DATADIR" \
+    LIBDIR="$LIBDIR"  &&
 
-  # Data files (can contain spaces)
+  prepare_install  &&
+
+  mkdir -p /usr/games $DATADIR $LIBDIR  &&
+
+  # OpenGL seems more stable than SDL, but may vary.
+  # These are sane executable filenames.
+  install -D -m755 release/crx   /usr/games/${MODULE}      &&
+  install -D -m755 release/crded /usr/games/${MODULE}-ded  &&
+  install -D -m755 release/arena/game.so $LIBDIR/arena/game.so   &&
+
+  # Data files (might contain spaces)
+  cd ..  &&
   find arena botinfo data1 -type f | while read i ; do
-    install -D -m644 "$i" "${INST_DIR}/$i"
+    install -D -m644 "$i" "${DATADIR}/$i"
   done  &&
 
-  # Desktop entry
+  # Desktop icon
   install -D -m644 aa.png /usr/share/pixmaps/${MODULE}.png  &&
-#  install -D -m644 $startdir/src/${pkgname}.desktop /usr/share/applications/${MODULE}.desktop  &&
-  prepare_install  &&
-
-  cp -R $SOURCE_DIRECTORY/* $INST_DIR  &&
 
-  gather_docs docs
+  # Desktop menu entry
+  cat > ${MODULE}.desktop << EOF  &&
+[Desktop Entry]
+Type=Application
+Name=Alien Arena
+Comment=Multiplayer retro sci-fi deathmatch
+Exec=$MODULE
+Icon=$MODULE
+Categories=Game;ActionGame;
+EOF
+
+  install -D -m644 ${MODULE}.desktop /usr/share/applications/${MODULE}.desktop  &&
+
+  mv docs/{license,README}.txt .  &&
+  rm -r docs  &&
+  gather_docs *.txt
 
 ) > $C_FIFO 2>&1
diff --git a/games/alienarena/DETAILS b/games/alienarena/DETAILS
index d88cd91..8e749b2 100644
--- a/games/alienarena/DETAILS
+++ b/games/alienarena/DETAILS
@@ -8,7 +8,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE$MOD
       SOURCE_VFY=sha1:e3ec358f1e2eac4662bfe7524c53a0e023388816
         WEB_SITE=http://red.planetarena.org
          ENTERED=20080606
-         UPDATED=20090620
+         UPDATED=20090830
            SHORT="FPS freeware online deathmatch game"
 
 cat << EOF
@@ -17,14 +17,14 @@ With over 30 levels, seven modes of play, loads of mutators, built-in bots,
 supply of replayability.
 
 Using the CRX engine, which is based on the Id GPL source code, AA2K7 now
-includes modern effects such as real time vertex lighting and shadows,
+includes modern effects such as real-time vertex lighting and shadows,
 lensflares, light blooms, reflective water, textured particles, stainmaps, 32
 bit color,  shaders, fog, and much more.
 
-Built into the game is a easy to use server browser which allows the user to
+Built into the game is an easy-to-use server browser which allows the user to
 query information about each server.  CRX features rewards systems, as well as
 colored player names, winner podiums, and weapons stats.  The best thing about
-the CRX engine however, is it's netcode and speed.  Even on a modest system,
+the CRX engine however, is its netcode and speed.  Even on a modest system,
 you will get excellent framerates, and movement is still extremely smooth and
-fast, even on high ping servers
+fast, even on high-ping servers.
 EOF


More information about the Lunar-commits mailing list