1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
2 # Contributor: Ali H. Caliskan <ali.h.caliskan@gmail.com>
3 # Contributor: Xavier <shiningxc[at]gmail[dot]com>
8 pkgdesc="Savage 2: A Tortured Soul is an fantasy themed online multiplayer team-based FPS/RTS/RPG hybrid. Completely free as of December 2008."
10 url='http://savage2.com/'
11 license=('custom: "Savage 2"')
12 depends=('mesa' 'libxml2')
14 install=savage2.install
15 source=("http://188.40.92.72/Savage2Install-$pkgver-$CARCH.bin" \
16 'savage2.launcher' 'savage2.desktop' 's2editor.desktop' 's2mviewer.desktop')
17 md5sums=('1ff815b9e864862d6d2cf6c635278b80'
18 'fb03853628775f66689852a4125044e8'
19 'a6957bb87da35d58df86d84a6dca1479'
20 'b082a33fd1a580d3c70d80bbbfb0bffe'
21 '177155e2c2c4e1382ce9b1343e26b5c7')
22 [ "$CARCH" = "x86_64" ] && md5sums[0]='78a5df8adc008e2c7493bab9f66a3092'
27 # Create Destination Directory
28 install -d $pkgdir/opt/savage2
30 # Extract Game Data from Installer
31 unzip -o $srcdir/Savage2Install-$pkgver-$CARCH.bin && return 0
33 # Install Savage 2 Data
34 cp -r $srcdir/data/* $pkgdir/opt/savage2
36 # Install Game Launcher
37 install -D -m 755 $srcdir/savage2.launcher \
38 $pkgdir/usr/bin/savage2
40 # Install Desktop File (Game Client)
41 install -D -m 644 $srcdir/savage2.desktop \
42 $pkgdir/usr/share/applications/savage2.desktop
44 # Install Desktop File (Map Editor)
45 install -D -m 644 $srcdir/s2editor.desktop \
46 $pkgdir/usr/share/applications/s2editor.desktop
48 # Install Desktop File (Model Viewer)
49 install -D -m 644 $srcdir/s2mviewer.desktop \
50 $pkgdir/usr/share/applications/s2mviewer.desktop
53 install -D -m 644 $srcdir/data/s2icon.png \
54 $pkgdir/usr/share/pixmaps/savage2.png
57 install -D -m 644 $srcdir/data/license.txt \
58 $pkgdir/usr/share/licenses/$pkgname/license.txt