[Lunar-commits] <moonbase> alienarena: ver 7.51 & cleanup
Paul Bredbury
brebs at lunar-linux.org
Sat Mar 12 11:58:19 CET 2011
commit 6e2cfd253e25a23cf22d4c1168e4a3815f4e8cde
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Sat Mar 12 17:58:19 2011 +0700
alienarena: ver 7.51 & cleanup
DEPENDS is not pretty, because most of the deps are only needed for the
client.
Don't specify /usr/share/pixmaps, it's not the standard. See:
grep ^Icon= /usr/share/applications/*
The mquery was back-to-front, but depending on "%GLX" is better-fitting
for Lunar anyway.
The "OS=linux" line was pointless.
---
games/alienarena/BUILD | 20 ++++++++++++--------
games/alienarena/CONFIGURE | 2 --
games/alienarena/DEPENDS | 12 +++++++-----
games/alienarena/DETAILS | 13 ++++++-------
4 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/games/alienarena/BUILD b/games/alienarena/BUILD
index ebd64e1..e8571b3 100644
--- a/games/alienarena/BUILD
+++ b/games/alienarena/BUILD
@@ -1,23 +1,27 @@
(
- default_build &&
+ default_game_build &&
- # Desktop icon
- install -D -m644 aa.png /usr/share/pixmaps/${MODULE}.png &&
+ if in_depends $MODULE mesa-lib ; then
+ # Desktop icon
+ install -Dm 644 {,/usr/share/pixmaps/}$MODULE.png &&
- # Desktop menu entry
- cat > ${MODULE}.desktop << EOF &&
+ # Desktop menu entry
+ cat > $MODULE.desktop << EOF &&
[Desktop Entry]
Type=Application
Name=Alien Arena
Comment=Multiplayer retro sci-fi deathmatch
Exec=crx
-Icon=/usr/share/pixmaps/${MODULE}.png
+Icon=$MODULE
Categories=Game;ActionGame;
EOF
- install -D -m644 ${MODULE}.desktop /usr/share/applications/${MODULE}.desktop &&
+ install -Dm 644 {,/usr/share/applications/}$MODULE.desktop
+ fi &&
- install -D -m664 Tools/LinuxScripts/* /usr/share/doc/alienarena/
+ # Docs
+ mv {docs,Tools}/* . &&
+ gather_docs *.txt LinuxScripts
) > $C_FIFO 2>&1
diff --git a/games/alienarena/CONFIGURE b/games/alienarena/CONFIGURE
deleted file mode 100644
index 8de12b0..0000000
--- a/games/alienarena/CONFIGURE
+++ /dev/null
@@ -1,2 +0,0 @@
-mquery USE_DED "Install as a dedicated server only?" n "--disable-client" "--enable-client"
-
diff --git a/games/alienarena/DEPENDS b/games/alienarena/DEPENDS
index c3ec3e5..94e2c7e 100644
--- a/games/alienarena/DEPENDS
+++ b/games/alienarena/DEPENDS
@@ -1,6 +1,8 @@
-depends curl
-depends openal
-depends ode
+optional_depends "%GLX" "--enable-client" "--disable-client" "build client"
+optional_depends curl "" "" "needed for client"
+optional_depends openal "" "" "needed for client"
-optional_depends libXxf86dga "--with-xf86dga" "--without-xf86dga" "For xf86dga support"
-optional_depends libXxf86vm "--with-xf86vm" "--without-xf86vm" "For xf86vm support"
+optional_depends libXxf86dga "--with-xf86dga" "--without-xf86dga" "for xf86dga support with client"
+optional_depends libXxf86vm "--with-xf86vm" "--without-xf86vm" "for xf86vm support with client"
+
+optional_depends ode "--with-system-libode" "--without-system-libode" "use system ode (instead of bundled)"
diff --git a/games/alienarena/DETAILS b/games/alienarena/DETAILS
index b89ed42..4e5655f 100644
--- a/games/alienarena/DETAILS
+++ b/games/alienarena/DETAILS
@@ -1,14 +1,13 @@
MODULE=alienarena
- VERSION=20101214
- VER=7_50
- OS=linux
- SOURCE=${MODULE}-$VER-$OS$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/${MODULE}-7.50
+ VERSION=7.51
+ VER=7_51
+ VER_DATE=20110311
+ SOURCE=$MODULE-$VER-linux$VER_DATE.tar.gz
SOURCE_URL=http://icculus.org/alienarena/Files/
- SOURCE_VFY=sha1:f71c5b65060befcaa6fba5897904d558a0c96b3f
+ SOURCE_VFY=sha1:a1359d58652206c4ea5d5987eb1d807ebf9903e8
WEB_SITE=http://red.planetarena.org
ENTERED=20080606
- UPDATED=20101216
+ UPDATED=20110311
SHORT="FPS freeware online deathmatch game"
cat << EOF
More information about the Lunar-commits
mailing list