summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlashbunny2013-09-02 16:31:59 -0400
committerSlashbunny2013-09-02 16:31:59 -0400
commit9564dd18ee1e526af0d60dd105ef61bb45692748 (patch)
treeb90616e8f3b7505ca3a8ca9207afaafb1a4ba6d8
parente27f5f5120d6bd36d8655cf5877642f8f066d37a (diff)
downloadaur-9564dd18ee1e526af0d60dd105ef61bb45692748.tar.gz
Modernized pkgbuild, added working mirrors
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD75
2 files changed, 48 insertions, 46 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c83b52023ac..f1012941db1d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,12 @@
pkgbase = savage
pkgdesc = Savage: The Battle for Newerth is an online multiplayer team-based FPS/RTS hybrid. Completely free as of September 2006. (Includes SFE Patches)
pkgver = 2.00e
- pkgrel = 8
+ pkgrel = 9
url = http://s2games.com/savage
install = savage.install
arch = i686
arch = x86_64
license = custom
- makedepends = unzip
depends = libgl
depends = sdl
depends = glib2
@@ -22,14 +21,14 @@ pkgbase = savage
source = savage.x86_64.launcher
source = savage.desktop
source = icon.xpm
- source = http://newerth.com/downloads/lin-client-auth-patch.zip
- source = http://www.notforidiots.com/SFE/SFE-Standalone.tar.gz
- md5sums = 1588610be6fe7c52eda37fee65ca16c4
- md5sums = 2129b16867cd875ce05a8f5f400ca967
- md5sums = 1fcb84c031b22b73fd803a6e2a611aca
- md5sums = a73f68e3620382860b08e88c1125f55d
- md5sums = 7fb1e0b31e838ea335a35c769c4549d8
- md5sums = 3ce0c50e3d5e4ff6789122c5076fb66b
+ source = lin-client-auth-patch.zip::http://www.newerth.com/?id=downloads&op=downloadFile&file=lin-client-auth-patch.zip&mirrorid=3
+ source = SFE-Standalone.tar.gz::http://www.newerth.com/?id=downloads&op=downloadFile&file=SFE-Standalone.tar.gz&mirrorid=3
+ sha256sums = 401f458a9ff66473e329ce7f5363459877455300e5c6ba77e934e9423d7436e8
+ sha256sums = 2990284957c354d1f7bed8a39ffa5b0c3c76e59c366ceb976845419912940b23
+ sha256sums = 837a9df33bd539b3ac27549be4773b4e6bc5576247ce5fea9bb40bec5fadfdfe
+ sha256sums = a5f19aa5ea77635362a79553e6571c534d442de6b34761941e0d4f5a2358f41e
+ sha256sums = f5e714b012270e75fa4e8a188e3b072741889590c8740a74748e0c19acbe42e2
+ sha256sums = a6b12837b6d0c643aaa1aa58dcb1b2711b17547e355ba187308472f6e1f52c13
pkgname = savage
diff --git a/PKGBUILD b/PKGBUILD
index 1d5cad995273..20840792f6b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,68 +1,71 @@
-# Contributor: Slash <demodevil5[at]yahoo[dot]com>
+# Maintainer: Slash <demodevil5[at]yahoo[dot]com>
pkgname=savage
pkgver=2.00e
-pkgrel=8
+pkgrel=9
pkgdesc="Savage: The Battle for Newerth is an online multiplayer team-based FPS/RTS hybrid. Completely free as of September 2006. (Includes SFE Patches)"
url="http://s2games.com/savage"
arch=('i686' 'x86_64')
license=('custom')
-if [ "$CARCH" = "x86_64" ]; then
- depends=('lib32-sdl' 'lib32-mesa' 'lib32-libjpeg6' 'lib32-e2fsprogs' 'lib32-glib2' 'lib32-pcre' 'lib32-zlib' 'lib32-freetype2' 'lib32-libxdamage')
+if [ "${CARCH}" = "x86_64" ]; then
+ depends=('lib32-sdl' 'lib32-mesa' 'lib32-libjpeg6' 'lib32-e2fsprogs'
+ 'lib32-glib2' 'lib32-pcre' 'lib32-zlib' 'lib32-freetype2'
+ 'lib32-libxdamage')
else
- depends=('libgl' 'sdl' 'glib2' 'mesa' 'libjpeg6' 'libpng' 'libidn' 'e2fsprogs' 'curl' 'openssl')
+ depends=('libgl' 'sdl' 'glib2' 'mesa' 'libjpeg6' 'libpng' 'libidn'
+ 'e2fsprogs' 'curl' 'openssl')
fi
-makedepends=('unzip')
install=savage.install
source=('savage.i686.launcher' 'savage.x86_64.launcher' 'savage.desktop' 'icon.xpm' \
-'http://newerth.com/downloads/lin-client-auth-patch.zip' \
-'http://www.notforidiots.com/SFE/SFE-Standalone.tar.gz')
-md5sums=('1588610be6fe7c52eda37fee65ca16c4'
- '2129b16867cd875ce05a8f5f400ca967'
- '1fcb84c031b22b73fd803a6e2a611aca'
- 'a73f68e3620382860b08e88c1125f55d'
- '7fb1e0b31e838ea335a35c769c4549d8'
- '3ce0c50e3d5e4ff6789122c5076fb66b')
+'lin-client-auth-patch.zip::http://www.newerth.com/?id=downloads&op=downloadFile&file=lin-client-auth-patch.zip&mirrorid=3' \
+'SFE-Standalone.tar.gz::http://www.newerth.com/?id=downloads&op=downloadFile&file=SFE-Standalone.tar.gz&mirrorid=3')
+sha256sums=('401f458a9ff66473e329ce7f5363459877455300e5c6ba77e934e9423d7436e8'
+ '2990284957c354d1f7bed8a39ffa5b0c3c76e59c366ceb976845419912940b23'
+ '837a9df33bd539b3ac27549be4773b4e6bc5576247ce5fea9bb40bec5fadfdfe'
+ 'a5f19aa5ea77635362a79553e6571c534d442de6b34761941e0d4f5a2358f41e'
+ 'f5e714b012270e75fa4e8a188e3b072741889590c8740a74748e0c19acbe42e2'
+ 'a6b12837b6d0c643aaa1aa58dcb1b2711b17547e355ba187308472f6e1f52c13')
+PKGEXT='.pkg.tar'
-build() {
- cd $startdir/src/
+package() {
+ cd ${srcdir}
# Make Destination Game Directory
- install -d $startdir/pkg/opt/savage
+ install -d ${pkgdir}/opt/savage
# Install Game
- tar zxf $startdir/src/SFE-Standalone.tar.gz -C $startdir/pkg/opt/savage/
+ tar zxf ${srcdir}/SFE-Standalone.tar.gz -C ${pkgdir}/opt/savage/
# Install Client Auth Patch
- install -m 755 $startdir/src/lin-client-auth-patch/silverback.bin \
- $startdir/pkg/opt/savage/silverback.bin
+ install -m 755 ${srcdir}/lin-client-auth-patch/silverback.bin \
+ ${pkgdir}/opt/savage/silverback.bin
- install -m 755 $startdir/src/lin-client-auth-patch/game/game.so \
- $startdir/pkg/opt/savage/game/game.so
+ install -m 755 ${srcdir}/lin-client-auth-patch/game/game.so \
+ ${pkgdir}/opt/savage/game/game.so
- install -m 755 $startdir/src/lin-client-auth-patch/libs/libpng12.so.0 \
- $startdir/pkg/opt/savage/libs/libpng12.so.0
+ install -m 755 ${srcdir}/lin-client-auth-patch/libs/libpng12.so.0 \
+ ${pkgdir}/opt/savage/libs/libpng12.so.0
# Install Launcher Script
- install -D -m 755 $startdir/src/savage.$CARCH.launcher \
- $startdir/pkg/usr/bin/savage
+ install -D -m 755 ${srcdir}/savage.${CARCH}.launcher \
+ ${pkgdir}/usr/bin/savage
# Install License
- install -D -m 644 $startdir/src/licenses.txt \
- $startdir/pkg/usr/share/licenses/$pkgname/licenses.txt
+ install -D -m 644 ${srcdir}/licenses.txt \
+ ${pkgdir}/usr/share/licenses/${pkgname}/licenses.txt
# Install Icon
- install -D -m 644 $startdir/src/icon.xpm \
- $startdir/pkg/usr/share/pixmaps/savage.xpm
+ install -D -m 644 ${srcdir}/icon.xpm \
+ ${pkgdir}/usr/share/pixmaps/savage.xpm
# Install Desktop File
- install -D -m 644 $startdir/src/savage.desktop \
- $startdir/pkg/usr/share/applications/savage.desktop
+ install -D -m 644 ${srcdir}/savage.desktop \
+ ${pkgdir}/usr/share/applications/savage.desktop
# Create Log File
- touch $startdir/pkg/opt/savage/scripts.log
+ touch ${pkgdir}/opt/savage/scripts.log
- # Set Ownership to root:games
- chown -R root:games $startdir/pkg/opt/savage
- chmod -R g+w $startdir/pkg/opt/savage
+ # Set Ownership to root:games
+ chown -R root:games ${pkgdir}/opt/savage
+ chmod -R g+w ${pkgdir}/opt/savage
}