diff options
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | savage2.sh | 17 |
3 files changed, 36 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = savage2 pkgdesc = Savage 2: A Tortured Soul is an fantasy themed online multiplayer team-based FPS/RTS/RPG hybrid. Completely free as of December 2008. - pkgver = 2.1.0.5 - pkgrel = 3 + pkgver = 2.1.0.7 + pkgrel = 1 url = http://savage2.com/ install = savage2.install arch = i686 @@ -10,16 +10,18 @@ pkgbase = savage2 makedepends = unzip depends = mesa depends = libxml2 - source = http://188.40.92.72/Savage2-2.1.0.5-linux-installer.run + source = http://savage2.s2games.com/downloads/Savage2-2.1.0.7-linux-installer.run source = savage2.launcher source = savage2.desktop source = s2editor.desktop source = s2mviewer.desktop - md5sums = 044398c71197478031f5c2c894323c50 + source = savage2.sh + md5sums = a0ac6f3eba8c9a1d7c908489bdb850c9 md5sums = f08e9499ff5f10b5e5e98454aa595db5 md5sums = a6957bb87da35d58df86d84a6dca1479 md5sums = b082a33fd1a580d3c70d80bbbfb0bffe md5sums = 177155e2c2c4e1382ce9b1343e26b5c7 + md5sums = ccdd27d23125aaa76a1ebfe021ecd967 pkgname = savage2 @@ -3,8 +3,8 @@ # Contributor: Xavier <shiningxc[at]gmail[dot]com> pkgname=savage2 -pkgver=2.1.0.5 -pkgrel=3 +pkgver=2.1.0.7 +pkgrel=1 pkgdesc="Savage 2: A Tortured Soul is an fantasy themed online multiplayer team-based FPS/RTS/RPG hybrid. Completely free as of December 2008." arch=('i686' 'x86_64') url='http://savage2.com/' @@ -12,15 +12,16 @@ license=('custom: "Savage 2"') depends=('mesa' 'libxml2') makedepends=('unzip') install=savage2.install -source=("http://188.40.92.72/Savage2-${pkgver}-linux-installer.run" \ -'savage2.launcher' 'savage2.desktop' 's2editor.desktop' 's2mviewer.desktop') -md5sums=('044398c71197478031f5c2c894323c50' +source=("http://savage2.s2games.com/downloads/Savage2-${pkgver}-linux-installer.run" \ +'savage2.launcher' 'savage2.desktop' 's2editor.desktop' 's2mviewer.desktop' 'savage2.sh') +md5sums=('a0ac6f3eba8c9a1d7c908489bdb850c9' 'f08e9499ff5f10b5e5e98454aa595db5' 'a6957bb87da35d58df86d84a6dca1479' 'b082a33fd1a580d3c70d80bbbfb0bffe' - '177155e2c2c4e1382ce9b1343e26b5c7') -[ "$CARCH" = "x86_64" ] && source[0]="http://188.40.92.72/Savage2-${pkgver}-linux-x64-installer.run" -[ "$CARCH" = "x86_64" ] && md5sums[0]='e6abef6bf1c4bce05719584e0f6b1900' + '177155e2c2c4e1382ce9b1343e26b5c7' + 'ccdd27d23125aaa76a1ebfe021ecd967') +[ "$CARCH" = "x86_64" ] && source[0]="http://savage2.s2games.com/downloads/Savage2-${pkgver}-linux-x64-installer.run" +[ "$CARCH" = "x86_64" ] && md5sums[0]='ed5cbab367391f91453de21f0f150b04' PKGEXT='.pkg.tar' build() { @@ -42,6 +43,10 @@ build() { # Run Installer $srcdir/$_installer_name --mode unattended --prefix $pkgdir/opt/savage2/ + # Install Game Script missing from 2.1.0.7 + install -D -m 755 $srcdir/savage2.sh \ + $pkgdir/opt/savage2/savage2.sh + # Install Game Launcher install -D -m 755 $srcdir/savage2.launcher \ $pkgdir/usr/bin/savage2 diff --git a/savage2.sh b/savage2.sh new file mode 100644 index 000000000000..48372eb97aff --- /dev/null +++ b/savage2.sh @@ -0,0 +1,17 @@ +#!/bin/sh +dir=$0 +name=`basename $dir` +if [ "$name" = "$dir" ]; then + OIFS=$IFS + IFS=: + for path in $PATH; do + if [ -x "$path/$name" ]; then break; fi + done + IFS=$OIFS + dir=$path/$name +fi +while [ -L "$dir" ]; do + dir=`readlink "$dir"` +done +cd "`dirname "$dir"`" +./savage2.bin "$*" |