summaryrefslogtreecommitdiffstats
path: root/bin-games
diff options
context:
space:
mode:
authorJulien ROZO2008-11-10 11:49:27 +0100
committerJulien ROZO2008-11-10 11:49:27 +0100
commite49bb55608a1c19df35d1dd1d92a33766c692d92 (patch)
treea4b5eec24eaf8654a65c6175e71bd7ac9ad4e093 /bin-games
parentc82ba697ab39787582080a90f0c5ab9644f03b70 (diff)
openarena-bin: moved from z-rejected grimoire
Diffstat (limited to 'bin-games')
-rwxr-xr-xbin-games/openarena-bin/BUILD1
-rwxr-xr-xbin-games/openarena-bin/DEPENDS5
-rwxr-xr-xbin-games/openarena-bin/DETAILS19
-rw-r--r--bin-games/openarena-bin/HISTORY19
-rwxr-xr-xbin-games/openarena-bin/INSTALL8
-rwxr-xr-xbin-games/openarena-bin/POST_INSTALL13
-rwxr-xr-xbin-games/openarena-bin/PREPARE1
-rwxr-xr-xbin-games/openarena-bin/PRE_BUILD7
-rwxr-xr-xbin-games/openarena-bin/PRE_INSTALL6
-rwxr-xr-xbin-games/openarena-bin/oa_ded14
-rwxr-xr-xbin-games/openarena-bin/openarena14
11 files changed, 107 insertions, 0 deletions
diff --git a/bin-games/openarena-bin/BUILD b/bin-games/openarena-bin/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-games/openarena-bin/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-games/openarena-bin/DEPENDS b/bin-games/openarena-bin/DEPENDS
new file mode 100755
index 0000000..2ef3741
--- /dev/null
+++ b/bin-games/openarena-bin/DEPENDS
@@ -0,0 +1,5 @@
+depends OPENGL &&
+depends openal &&
+depends sdl &&
+depends curl &&
+depends libvorbis
diff --git a/bin-games/openarena-bin/DETAILS b/bin-games/openarena-bin/DETAILS
new file mode 100755
index 0000000..79b7641
--- /dev/null
+++ b/bin-games/openarena-bin/DETAILS
@@ -0,0 +1,19 @@
+ SPELL=openarena-bin
+ SPELLX=openarena
+ VERSION=0.8.1
+ VER=081
+ SOURCE=oa${VER}.zip
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/${SPELLX}-${VERSION}
+ SOURCE_URL=http://download.tuxfamily.org/${SPELLX}/rel/${VER}/${SOURCE}
+ SOURCE_HASH=sha512:99371917c3987af2f7291b1786dc7371b617d36fd303a5f6f9dbc7721f42a875309298f9a44dc337b019e802462fd1d5f8956f25468b2a8a2cd0cf4df436eb34
+ LICENSE=GPL
+ WEB_SITE=http://openarena.ws/
+ ENTERED=20080422
+ ARCHIVE="off"
+ REJECT="binary distribution"
+ SHORT="an open-source FPS based on Q3A engine"
+cat << EOF
+OpenArena is an open-source content package for Quake III Arena licensed under
+the GPL, effectively creating a free stand-alone game.
+You do not need Quake III Arena to play this game.
+EOF
diff --git a/bin-games/openarena-bin/HISTORY b/bin-games/openarena-bin/HISTORY
new file mode 100644
index 0000000..68a1fbf
--- /dev/null
+++ b/bin-games/openarena-bin/HISTORY
@@ -0,0 +1,19 @@
+2008-11-10 Julien "_kaze_" ROZO <julien@rozo.org>
+ * PRE_INSTALL: added, removes Windows and Mac OS X files
+
+2008-11-02 Julien "_kaze_" ROZO <julien@rozo.org>
+ * DETAILS: updated version to 0.8.1
+ * INSTALL: removed permissions fix on scripts installed from SPELL_DIRECTORY
+ * POST_INSTALL: added games_make_proper_binary call in redefined
+ default_post_install to fix permissions on those scripts
+
+2008-08-18 Julien "_kaze_" ROZO <julien@rozo.org>
+ * INSTALL: fixed permissions on scripts installed from SPELL_DIRECTORY
+
+2008-08-09 Julien "_kaze_" ROZO <julien@rozo.org>
+ * DETAILS: updated version to 0.8.0
+
+2008-04-22 Julien "_kaze_" ROZO <julien@rozo.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, POST_INSTALL, PRE_BUILD, PREPARE,
+ oa_ded, openarena: created this spell
+
diff --git a/bin-games/openarena-bin/INSTALL b/bin-games/openarena-bin/INSTALL
new file mode 100755
index 0000000..d6b856a
--- /dev/null
+++ b/bin-games/openarena-bin/INSTALL
@@ -0,0 +1,8 @@
+INSTALL_DIR=${INSTALL_ROOT}/opt/openarena &&
+mkdir $INSTALL_DIR &&
+cp -v ${SPELL_DIRECTORY}/openarena ${INSTALL_ROOT}/usr/games &&
+cp -v ${SPELL_DIRECTORY}/oa_ded ${INSTALL_ROOT}/usr/games &&
+cp -rv * $INSTALL_DIR &&
+cd $INSTALL_DIR &&
+find_and_scam &&
+chmod 750 {oa_ded,openarena}.{i386,x86_64}
diff --git a/bin-games/openarena-bin/POST_INSTALL b/bin-games/openarena-bin/POST_INSTALL
new file mode 100755
index 0000000..0577233
--- /dev/null
+++ b/bin-games/openarena-bin/POST_INSTALL
@@ -0,0 +1,13 @@
+#
+# The default_post_install in this section tries to remove a lot of stuff in
+# /usr/share/games/
+# This spell installed nothing in /usr/share/games/
+# so there is nothing to remove
+#
+
+function default_post_install() {
+ games_make_proper_binary &&
+ real_default_post_install
+}
+
+default_post_install
diff --git a/bin-games/openarena-bin/PREPARE b/bin-games/openarena-bin/PREPARE
new file mode 100755
index 0000000..b8424fe
--- /dev/null
+++ b/bin-games/openarena-bin/PREPARE
@@ -0,0 +1 @@
+source $GRIMOIRE/REJECTED_MSG
diff --git a/bin-games/openarena-bin/PRE_BUILD b/bin-games/openarena-bin/PRE_BUILD
new file mode 100755
index 0000000..c50deeb
--- /dev/null
+++ b/bin-games/openarena-bin/PRE_BUILD
@@ -0,0 +1,7 @@
+create_group games &&
+message "${SPELL_COLOR}This will take some considerable time due to the" \
+ "size of the package. No cache will be created during this install" \
+ "either${DEFAULT_COLOR}." &&
+mk_source_dir &&
+cd $BUILD_DIRECTORY &&
+unpack_file ''
diff --git a/bin-games/openarena-bin/PRE_INSTALL b/bin-games/openarena-bin/PRE_INSTALL
new file mode 100755
index 0000000..5f62b88
--- /dev/null
+++ b/bin-games/openarena-bin/PRE_INSTALL
@@ -0,0 +1,6 @@
+## Remove files for Windows and Mac OS X platforms
+find . -name '*.exe' -type f -delete &&
+find . -name '*.dll' -type f -delete &&
+find . -name '*.app' -type d -print0 | xargs -0 rm -rf &&
+
+default_sorcery_pre_install
diff --git a/bin-games/openarena-bin/oa_ded b/bin-games/openarena-bin/oa_ded
new file mode 100755
index 0000000..50603ee
--- /dev/null
+++ b/bin-games/openarena-bin/oa_ded
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+cd /opt/openarena &&
+
+# we pick the right executable for the current arch
+arch=`uname -m | sed -e s/i.86/i386/`
+executable="`basename \"${0}\"`.$arch"
+
+if [ ! -e "$executable" ]; then
+ echo "Error: $executable not found"
+ exit 1
+fi
+
+./$executable
diff --git a/bin-games/openarena-bin/openarena b/bin-games/openarena-bin/openarena
new file mode 100755
index 0000000..50603ee
--- /dev/null
+++ b/bin-games/openarena-bin/openarena
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+cd /opt/openarena &&
+
+# we pick the right executable for the current arch
+arch=`uname -m | sed -e s/i.86/i386/`
+executable="`basename \"${0}\"`.$arch"
+
+if [ ! -e "$executable" ]; then
+ echo "Error: $executable not found"
+ exit 1
+fi
+
+./$executable