summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSlashbunny2009-08-17 23:22:17 -0400
committerSlashbunny2009-08-17 23:22:17 -0400
commit755a7a6b96f13e9e507824a28f8d44c4e2c144e8 (patch)
tree04cdebeb26ee01c5109611a2cd82790a10b2731a /PKGBUILD
parente8309983d37c1d0ab1bbbf9b025f8384fffaf7ef (diff)
downloadaur-755a7a6b96f13e9e507824a28f8d44c4e2c144e8.tar.gz
Updated savage2 to 2.1.0.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD86
1 files changed, 42 insertions, 44 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 860ddc49189..90ffa238bec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,61 +1,59 @@
-# Maintainer: Ali H. Caliskan <ali.h.caliskan@gmail.com>
-# Contributor: Slash <demodevil5[at]yahoo[dot]com>
+# Contributor: 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
-pkgrel=3
-pkgdesc="Savage 2 is a fantasy themed action RPG, that combines elements of FPS and RTS."
+pkgver=2.1.0.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')
-url="http://savage2.com/en/main.php"
-license=('custom')
-depends=('mesa' 'libjpeg' 'libjpeg6' 'libxml2')
+url='http://savage2.com/'
+license=('custom: "Savage 2"')
+depends=('curl' 'mesa' 'libjpeg6' 'libpng' 'libxml2' 'speex')
makedepends=('unzip')
-install=('savage2.install')
-source=("http://savage.s2galactica.com/Savage2Install-$pkgver-$CARCH.bin"
- 's2game.desktop'
- 's2editor.desktop'
- 's2mviewer.desktop')
-md5sums=('85b76a8e1ab22f147bb6eef98465c0ba'
- 'e599528405e47b699cdf8ca5ea09be6e'
- '0b1bcd48feb45e5e155d2cdcedc18a2d'
- '74703e46ace651f5a668568b5f7b1ea0')
-[ "$CARCH" = "x86_64" ] && md5sums[0]='134814532db8a7aadc0ec56def5e924c'
+install=savage2.install
+source=("http://dl.heroesofnewerth.com/Savage2Install-$pkgver-$CARCH.bin" \
+'savage2.launcher' 'savage2.desktop' 's2editor.desktop' 's2mviewer.desktop')
+md5sums=('1ff815b9e864862d6d2cf6c635278b80'
+ 'fb03853628775f66689852a4125044e8'
+ 'a6957bb87da35d58df86d84a6dca1479'
+ 'b082a33fd1a580d3c70d80bbbfb0bffe'
+ '177155e2c2c4e1382ce9b1343e26b5c7')
+[ "$CARCH" = "x86_64" ] && md5sums[0]='78a5df8adc008e2c7493bab9f66a3092'
build() {
+ cd $srcdir
- cd $srcdir/
+ # Create Destination Directory
+ install -d $pkgdir/opt/savage2
- # Extract the binary file
- unzip -q -o Savage2Install-$pkgver-$CARCH.bin
+ # Extract Game Data from Installer
+ unzip -o $srcdir/Savage2Install-$pkgver-$CARCH.bin
- # Install Savage2
- install -d $pkgdir/opt/Savage2
- cp -r data/* $pkgdir/opt/Savage2
+ # Install Savage 2 Data
+ cp -r $srcdir/data/* $pkgdir/opt/savage2
- # Install Desktop Files
- install -d $pkgdir/usr/share/applications
- install -Dm644 *.desktop $pkgdir/usr/share/applications/
+ # Install Game Launcher
+ install -D -m 755 $srcdir/savage2.launcher \
+ $pkgdir/usr/bin/savage2
- # Install Icon and License
- install -Dm644 data/s2icon.png $pkgdir/usr/share/pixmaps/s2icon.png
- install -Dm644 data/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
+ # Install Desktop File (Game Client)
+ install -D -m 644 $srcdir/savage2.desktop \
+ $pkgdir/usr/share/applications/savage2.desktop
- # Install Launcher Script
- mkdir -p $pkgdir/usr/bin
- cat > $pkgdir/usr/bin/savage2 << "EOF"
-#!/bin/bash
+ # Install Desktop File (Map Editor)
+ install -D -m 644 $srcdir/s2editor.desktop \
+ $pkgdir/usr/share/applications/s2editor.desktop
-cd /opt/Savage2
-./savage2.bin
-EOF
+ # Install Desktop File (Model Viewer)
+ install -D -m 644 $srcdir/s2mviewer.desktop \
+ $pkgdir/usr/share/applications/s2mviewer.desktop
- chmod 755 $pkgdir/usr/bin/savage2
+ # Install Icon
+ install -D -m 644 $srcdir/data/s2icon.png \
+ $pkgdir/usr/share/pixmaps/savage2.png
- # Set group permission to root:games
- chown -R root:games $pkgdir/opt/Savage2
-
- # Set permission to 4755
- chmod 4755 $pkgdir/opt/Savage2/savage2.bin
- chmod 4755 $pkgdir/opt/Savage2/savage2_update.bin
+ # Install License
+ install -D -m 644 $srcdir/data/license.txt \
+ $pkgdir/usr/share/licenses/$pkgname/license.txt
}