diff options
Diffstat (limited to 'community/warsow/PKGBUILD')
-rw-r--r-- | community/warsow/PKGBUILD | 86 |
1 files changed, 28 insertions, 58 deletions
diff --git a/community/warsow/PKGBUILD b/community/warsow/PKGBUILD index 069f5666a..9a08f17a3 100644 --- a/community/warsow/PKGBUILD +++ b/community/warsow/PKGBUILD @@ -1,87 +1,57 @@ -# $Id: PKGBUILD 64728 2012-02-18 03:09:46Z svenstaro $ +# $Id: PKGBUILD 74467 2012-07-29 03:46:52Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Slash <demodevil5[at]yahoo[dot]com> # Contributor: Babets # Contributor: Vain pkgname=warsow -pkgver=0.62 -pkgrel=3 -pkgdesc="a free online multiplayer competitive FPS based on the Qfusion engine" +pkgver=1.0 +pkgrel=1 +pkgdesc="Free online multiplayer competitive FPS based on the Qfusion engine" url="http://www.warsow.net/" license=('GPL') arch=('i686' 'x86_64') -depends=('curl' 'libjpeg' 'libvorbis' 'libxinerama' 'libxxf86dga' 'libxxf86vm' 'sdl' 'warsow-data') -makedepends=('mesa' 'openal' 'unzip') +depends=('curl' 'libjpeg' 'libvorbis' 'libxinerama' 'libxxf86dga' 'libxxf86vm' 'sdl' 'warsow-data' 'libxrandr' 'libpng' 'libtheora') +makedepends=('mesa' 'openal' 'imagemagick' 'gendesk') optdepends=('openal: for openal audio support') -source=('warsow.desktop' 'warsow.launcher' 'wsw-server.launcher' 'wswtv-server.launcher' \ -"http://www.zcdn.org/dl/warsow_${pkgver}_sdk.zip") -noextract=("warsow_${pkgver}_sdk.zip") -md5sums=('f9bf60c80820237f7097c4e50a9582cd' - 'ec00081d81ad9802a8ca42fc2eac5498' +source=('warsow.launcher' 'wsw-server.launcher' 'wswtv-server.launcher' \ + "http://funpark.warsow-esport.net/~warsow/1.0/warsow_${pkgver}_sdk.tar.gz") +_genericname=('First person shooter') +_comment=('Online Mulitiplayer Competitive FPS') +md5sums=('ec00081d81ad9802a8ca42fc2eac5498' 'f73e10c26197178df71b941b10bf83d7' 'd7e4a69835bbcf801e58307e9d6b951e' - '649568447e938efded07e77cdfb3accb') + '35b9a8f530b51cda15c660b3a73f377e') build() { - unset CFLAGS - unset CXXFLAGS + cd "$srcdir" + gendesk -n - # Extract Game Source Code - unzip -o warsow_${pkgver}_sdk.zip -d $srcdir/warsow-src - - # Patch Makefile to use correct program to query for system information - sed -i 's:openal-config:pkg-config:g' $srcdir/warsow-src/source/Makefile - - # Patch Makefile to correctly pass on ld opts - sed -i 's:--as-needed:-Wc,--as-needed:g' $srcdir/warsow-src/source/Makefile - - # Patch Sound Code to point to base openal library - sed -i 's:libopenal.so.0:libopenal.so:g' $srcdir/warsow-src/source/snd_openal/snd_main.c - - # Patch for libjpeg8 - sed -i 's/jpeg_mem_src/_jpeg_mem_src/g' $srcdir/warsow-src/source/ref_gl/r_image.c - - # Patch AngelScript so it compiles correctly on i686 - if [ "$CARCH" == "i686" ]; then - sed -i 's:CXXFLAGS = \(.*\):CXXFLAGS = -march=i686 \1:' \ - $srcdir/warsow-src/libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc/makefile - fi + # This was used to fix some crashing due to alignment problems before. Has upstream + # finally got their shit together and we don't need them anymore? + #unset CFLAGS + #unset CXXFLAGS # Compile Warsow - cd $srcdir/warsow-src/source/ + cd $srcdir/warsow_${pkgver}_sdk/source/ make -j1 } package() { - cd $srcdir/warsow-src/source/ + cd $srcdir/warsow_${pkgver}_sdk/source/ # Create Destination Directories install -d $pkgdir/opt/warsow/ # Move Compiled Data to Destination Directory - cp -r $srcdir/warsow-src/source/release/* \ - $pkgdir/opt/warsow - - # Install Client Game Launcher - install -D -m 0755 $srcdir/warsow.launcher \ - $pkgdir/usr/bin/warsow - - # Install Server Game Launcher - install -D -m 0755 $srcdir/wsw-server.launcher \ - $pkgdir/usr/bin/wsw-server - - # Install WSWTV Server Launcher - install -D -m 0755 $srcdir/wswtv-server.launcher \ - $pkgdir/usr/bin/wswtv-server - - # Install Client Desktop Shortcut - install -D -m 0644 $srcdir/warsow.desktop \ - $pkgdir/usr/share/applications/warsow.desktop - - # Install Icon - install -D -m 0644 $srcdir/warsow-src/source/win32/warsow.ico \ - $pkgdir/usr/share/pixmaps/warsow.ico + cp -r $srcdir/warsow_${pkgver}_sdk/source/release/* $pkgdir/opt/warsow + + install -D -m 0755 $srcdir/warsow.launcher $pkgdir/usr/bin/warsow + install -D -m 0755 $srcdir/wsw-server.launcher $pkgdir/usr/bin/wsw-server + install -D -m 0755 $srcdir/wswtv-server.launcher $pkgdir/usr/bin/wswtv-server + install -D -m 0644 $srcdir/warsow.desktop $pkgdir/usr/share/applications/warsow.desktop + convert $srcdir/warsow_${pkgver}_sdk/source/win32/warsow.ico $srcdir/warsow.png + install -D -m 0644 $srcdir/warsow-0.png $pkgdir/usr/share/pixmaps/warsow.png } # vim: ts=2:sw=2 |