diff options
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | dead-cyborg-episode1.desktop | 10 | ||||
-rw-r--r-- | dead-cyborg-episode1.install | 29 | ||||
-rw-r--r-- | dead-cyborg-episode1.png | bin | 0 -> 44852 bytes | |||
-rw-r--r-- | dead-cyborg-episode1.sh | 3 | ||||
-rwxr-xr-x | start-game_oss.sh | 29 | ||||
-rwxr-xr-x | start-game_oss_fullscreen.sh | 27 |
8 files changed, 168 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..55498d54e563 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = dead-cyborg-episode1 + pkgdesc = Free, donation based oldskool sci-fi adventure game with 3D first person view + pkgver = 002 + pkgrel = 6 + url = http://deadcyborg.com/ + install = dead-cyborg-episode1.install + arch = i686 + arch = x86_64 + license = freeware + license = donationware + depends = openal + depends = sdl + depends = ffmpeg + depends = libpng + depends = libtiff + depends = libjpeg6 + depends = zlib + depends = python + optdepends = alsa-oss: for ALSA support through OSS. + options = !strip + source = http://deadcyborg.com/deadcyborg-episode1-linux_v002.tar.bz2 + source = dead-cyborg-episode1.png + source = dead-cyborg-episode1.desktop + source = dead-cyborg-episode1.sh + source = start-game_oss_fullscreen.sh + source = start-game_oss.sh + md5sums = 29d5b8c3b16d449f9b63d605a6619785 + md5sums = 7e09a96ce0c4837308ac3eb2d660f64e + md5sums = 64503e992b5ac5aa2ec38b276d748d6e + md5sums = bd15b4713bd18876a0717b5627a28cfd + md5sums = 852547068515d132baee2cc9ca8fabfa + md5sums = 89b7e8b0a15575e817471f1842a3806e + +pkgname = dead-cyborg-episode1 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2cf4d4da1d6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: SanskritFritz (gmail) +# Contributor: Chris_tian (AUR) + +pkgname=dead-cyborg-episode1 +pkgver=002 +pkgrel=6 +pkgdesc='Free, donation based oldskool sci-fi adventure game with 3D first person view' +arch=('i686' 'x86_64') +url='http://deadcyborg.com/' +license=('freeware' 'donationware') +depends=('openal' 'sdl' 'ffmpeg' 'libpng' 'libtiff' 'libjpeg6' 'zlib' 'python') +optdepends=('alsa-oss: for ALSA support through OSS.') +install='dead-cyborg-episode1.install' +source=("http://deadcyborg.com/deadcyborg-episode1-linux_v${pkgver}.tar.bz2" + "dead-cyborg-episode1.png" "dead-cyborg-episode1.desktop" "dead-cyborg-episode1.sh" + "start-game_oss_fullscreen.sh" "start-game_oss.sh") +options=(!strip) + +package() { + cd $srcdir + install -d "$pkgdir/opt/dead-cyborg-episode1" + cp --archive DeadCyborg-Episode1-Linux_v${pkgver}/* "$pkgdir/opt/dead-cyborg-episode1" + install -D dead-cyborg-episode1.png "$pkgdir/usr/share/pixmaps/dead-cyborg-episode1.png" + install -D dead-cyborg-episode1.sh "$pkgdir/usr/bin/dead-cyborg-episode1" + install -D dead-cyborg-episode1.desktop "$pkgdir/usr/share/applications/dead-cyborg-episode1.desktop" + install -D start-game_oss_fullscreen.sh "$pkgdir/opt/dead-cyborg-episode1/start-game_oss_fullscreen.sh" + install -D start-game_oss.sh "$pkgdir/opt/dead-cyborg-episode1/start-game_oss.sh" +} + +md5sums=('29d5b8c3b16d449f9b63d605a6619785' + '7e09a96ce0c4837308ac3eb2d660f64e' + '64503e992b5ac5aa2ec38b276d748d6e' + 'bd15b4713bd18876a0717b5627a28cfd' + '852547068515d132baee2cc9ca8fabfa' + '89b7e8b0a15575e817471f1842a3806e') diff --git a/dead-cyborg-episode1.desktop b/dead-cyborg-episode1.desktop new file mode 100644 index 000000000000..a5dd9cb7dca3 --- /dev/null +++ b/dead-cyborg-episode1.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Dead Cyborg - Episode 1 +GenericName=Dead Cyborg - Episode 1 +Comment=Dead Cyborg - Episode 1 +Encoding=UTF-8 +Type=Application +Terminal=false +Icon=dead-cyborg-episode1.png +Exec=dead-cyborg-episode1 +Categories=Game; diff --git a/dead-cyborg-episode1.install b/dead-cyborg-episode1.install new file mode 100644 index 000000000000..ddc9f5a81f03 --- /dev/null +++ b/dead-cyborg-episode1.install @@ -0,0 +1,29 @@ + +post_install() { + echo + echo "Dead Cyborg comes with several starter scripts located in /opt/dead-cyborg-episode1" + echo "Please choose which one you want to use for the Games menu (1-6):" + echo "[1] start-game.sh" + echo "[2] start-game_fullscreen.sh" + echo "[3] start-game_pulseaudio.sh" + echo "[4] start-game_pulseaudio_fullscreen.sh" + echo "[5] start-game_oss.sh" + echo "[6] start-game_oss_fullscreen.sh" + read nr; + case $nr in + 1) startgame="start-game" ;; + 2) startgame="start-game_fullscreen" ;; + 3) startgame="start-game_pulseaudio" ;; + 4) startgame="start-game_pulseaudio_fullscreen" ;; + 5) startgame="start-game_oss" ;; + 6) startgame="start-game_oss_fullscreen" ;; + *) startgame="start-game" ;; + esac + sed -i "s/start-game/${startgame}/g" /usr/bin/dead-cyborg-episode1 + echo "Dead Cyborg will be started with ${startgame}.sh" + echo +} + +post_upgrade() { + post_install +} diff --git a/dead-cyborg-episode1.png b/dead-cyborg-episode1.png Binary files differnew file mode 100644 index 000000000000..fa435ceadb0b --- /dev/null +++ b/dead-cyborg-episode1.png diff --git a/dead-cyborg-episode1.sh b/dead-cyborg-episode1.sh new file mode 100644 index 000000000000..47367021dc91 --- /dev/null +++ b/dead-cyborg-episode1.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/dead-cyborg-episode1 +./start-game.sh diff --git a/start-game_oss.sh b/start-game_oss.sh new file mode 100755 index 000000000000..4de8a37fe8aa --- /dev/null +++ b/start-game_oss.sh @@ -0,0 +1,29 @@ +#!/bin/sh +BF_DIST_BIN=`dirname "$0"`/data +BF_PROGRAM32="blenderplayer-i386" +BF_PROGRAM64="blenderplayer-x86_64" +exitcode=0 + +LD_LIBRARY_PATH32=${BF_DIST_BIN}/lib32:${LD_LIBRARY_PATH32} +LD_LIBRARY_PATH64=${BF_DIST_BIN}/lib64:${LD_LIBRARY_PATH64} + +if [ `uname -m` = "i686" ]; then + LD_LIBRARY_PATH=${LD_LIBRARY_PATH32} + export LD_LIBRARY_PATH + aoss "$BF_DIST_BIN/$BF_PROGRAM32" -w 1280 720 32 60 ./data/levels/episode_01/episode_01.blend + exitcode=$? + exit $exitcode +fi + +if [ `uname -m` = "x86_64" ]; then + LD_LIBRARY_PATH=${LD_LIBRARY_PATH64} + export LD_LIBRARY_PATH + aoss "$BF_DIST_BIN/$BF_PROGRAM64" -w 1280 720 32 60 ./data/levels/episode_01/episode_01.blend + exitcode=$? + exit $exitcode +fi + + + + + diff --git a/start-game_oss_fullscreen.sh b/start-game_oss_fullscreen.sh new file mode 100755 index 000000000000..78e605502836 --- /dev/null +++ b/start-game_oss_fullscreen.sh @@ -0,0 +1,27 @@ +#!/bin/sh +BF_DIST_BIN=`dirname "$0"`/data +BF_PROGRAM32="blenderplayer-i386" +BF_PROGRAM64="blenderplayer-x86_64" +exitcode=0 + +LD_LIBRARY_PATH32=${BF_DIST_BIN}/lib32:${LD_LIBRARY_PATH32} +LD_LIBRARY_PATH64=${BF_DIST_BIN}/lib64:${LD_LIBRARY_PATH64} + +if [ `uname -m` = "i686" ]; then + export LD_LIBRARY_PATH32 + aoss "$BF_DIST_BIN/$BF_PROGRAM32" ./data/levels/episode_01/episode_01.blend + exitcode=$? + exit $exitcode +fi + +if [ `uname -m` = "x86_64" ]; then + export LD_LIBRARY_PATH64 + aoss "$BF_DIST_BIN/$BF_PROGRAM64" ./data/levels/episode_01/episode_01.blend + exitcode=$? + exit $exitcode +fi + + + + + |