summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD59
1 files changed, 27 insertions, 32 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5433fa00c92..5a34e97aba8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,73 +1,68 @@
-# Contributor: Slash <demodevil5 [at] yahoo [dot] com>
+# Maintainer: Slash <demodevil5 [at] yahoo [dot] com>
# Contributor: Ali H. Caliskan <ali.h.caliskan@gmail.com>
# Contributor: Xavier <shiningxc[at]gmail[dot]com>
pkgname=savage2
-pkgver=2.1.0.8
+pkgver=2.1.1.1
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')
+arch=('x86_64')
url='http://savage2.com/'
license=('custom: "Savage 2"')
-depends=('mesa' 'libxml2')
+depends=('mesa' 'libxml2' 'glu')
makedepends=('unzip')
install=savage2.install
-source=("http://savage2.s2games.com/downloads/Savage2-${pkgver}-linux-installer.run" \
+source=("http://masterserver1.talesofnewerth.com/download/Savage2-${pkgver}-linux-x64-installer.run" \
'savage2.launcher' 'savage2.desktop' 's2editor.desktop' 's2mviewer.desktop' 'savage2.sh')
-md5sums=('d049386d1f1fcc262c95275582a0dcd0'
+md5sums=('4826a5db0a6f8c6e8add2176c11c49e2'
'f08e9499ff5f10b5e5e98454aa595db5'
'a6957bb87da35d58df86d84a6dca1479'
'b082a33fd1a580d3c70d80bbbfb0bffe'
'177155e2c2c4e1382ce9b1343e26b5c7'
'4acf06412dbd5ebbec89d1c5f2c99b4f')
-[ "$CARCH" = "x86_64" ] && source[0]="http://savage2.s2games.com/downloads/Savage2-${pkgver}-linux-x64-installer.run"
-[ "$CARCH" = "x86_64" ] && md5sums[0]='e126bcfd808a785766a33231f40b066a'
PKGEXT='.pkg.tar'
package() {
- cd $srcdir
+ cd "${srcdir}"
- # Installer name varies between architectures
- if [ "$CARCH" = "i686" ]; then
- _installer_name=Savage2-${pkgver}-linux-installer.run
- else
- _installer_name=Savage2-${pkgver}-linux-x64-installer.run
- fi
+ # Installer name
+ _installer_name="Savage2-${pkgver}-linux-x64-installer.run"
# Create Destination Directory
- install -d $pkgdir/opt/savage2
+ install -d "${pkgdir}/opt/savage2"
# Make Installer Executable
- chmod +x $srcdir/$_installer_name
+ chmod +x "${srcdir}/${_installer_name}"
# Run Installer
- $srcdir/$_installer_name --mode unattended --prefix $pkgdir/opt/savage2/
+ "${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 -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
+ install -D -m 755 "${srcdir}/savage2.launcher" \
+ "${pkgdir}/usr/bin/savage2"
# Install Desktop File (Game Client)
- install -D -m 644 $srcdir/savage2.desktop \
- $pkgdir/usr/share/applications/savage2.desktop
+ install -D -m 644 "${srcdir}/savage2.desktop" \
+ "${pkgdir}/usr/share/applications/savage2.desktop"
# Install Desktop File (Map Editor)
- install -D -m 644 $srcdir/s2editor.desktop \
- $pkgdir/usr/share/applications/s2editor.desktop
+ install -D -m 644 "${srcdir}/s2editor.desktop" \
+ "${pkgdir}/usr/share/applications/s2editor.desktop"
# Install Desktop File (Model Viewer)
- install -D -m 644 $srcdir/s2mviewer.desktop \
- $pkgdir/usr/share/applications/s2mviewer.desktop
+ install -D -m 644 "${srcdir}/s2mviewer.desktop" \
+ "${pkgdir}/usr/share/applications/s2mviewer.desktop"
# Install Icon
- install -D -m 644 $pkgdir/opt/savage2/s2icon.png \
- $pkgdir/usr/share/pixmaps/savage2.png
+ install -D -m 644 "${pkgdir}/opt/savage2/s2icon.png" \
+ "${pkgdir}/usr/share/pixmaps/savage2.png"
# Install License
- install -D -m 644 $pkgdir/opt/savage2/license.txt \
- $pkgdir/usr/share/licenses/$pkgname/license.txt
+ install -D -m 644 "${pkgdir}/opt/savage2/license.txt" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
}
+