summaryrefslogtreecommitdiff
path: root/community/hedgewars/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/hedgewars/PKGBUILD')
-rw-r--r--community/hedgewars/PKGBUILD48
1 files changed, 27 insertions, 21 deletions
diff --git a/community/hedgewars/PKGBUILD b/community/hedgewars/PKGBUILD
index 55b9133eb..caa8bd5b5 100644
--- a/community/hedgewars/PKGBUILD
+++ b/community/hedgewars/PKGBUILD
@@ -1,40 +1,46 @@
-# $Id: PKGBUILD 90047 2013-05-06 19:37:52Z foutrelis $
+# $Id: PKGBUILD 92299 2013-06-03 16:15:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=hedgewars
-pkgver=0.9.18
-pkgrel=8
+pkgver=0.9.19
+pkgrel=1
pkgdesc="Free Worms-like turn based strategy game"
arch=('i686' 'x86_64')
url="http://hedgewars.org"
license=('GPL' 'custom')
-depends=('qt4' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'lua51')
+depends=('qt4' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'lua51' 'ffmpeg' 'glut')
makedepends=('fpc' 'cmake'
# haskell specific
- 'ghc=7.6.3-1'
- 'haskell-network=2.4.1.2-1'
- 'haskell-bytestring-show=0.3.5.4-4'
- 'haskell-utf8-string=0.3.7-5'
- 'haskell-dataenc=0.14.0.5-2'
- 'haskell-hslogger=1.2.1-4'
- 'haskell-vector=0.10.0.1-4')
-source=(http://download.gna.org/hedgewars/hedgewars-src-$pkgver-3.tar.bz2
+ 'ghc'
+ 'haskell-network'
+ 'haskell-bytestring-show'
+ 'haskell-utf8-string'
+ 'haskell-dataenc'
+ 'haskell-hslogger'
+ 'haskell-vector'
+ 'haskell-random')
+source=(http://download.gna.org/hedgewars/hedgewars-src-$pkgver.tar.bz2
hedgewars.desktop
- hedgewars.png)
-md5sums=('02465736fdcf48feea1cacaa0aa5960e'
+ hedgewars.png
+ build-fix.patch)
+md5sums=('51d84ad6ea00e9894e6119b118b4a523'
'48c66a3204d4fa0a69e9aa46f7c31e0c'
- 'eeb14d50df39063549ac5eca9dbc65d1')
+ 'eeb14d50df39063549ac5eca9dbc65d1'
+ 'a9d7b0ba72cbeb7fc74fce459db9dd90')
+
+prepare() {
+ cd $pkgname-src-$pkgver
+ patch -Rp1 <$srcdir/build-fix.patch
+}
build() {
cd $pkgname-src-$pkgver
- sed -i 's|instance NFData B.ByteString||' gameServer/Actions.hs
-# sed -i 's|lua51 lua5.1 lua-5.1|lua lua51 lua5.1 lua-5.1|g' cmake_modules/FindLua.cmake
cmake \
+ -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DDATA_INSTALL_DIR=/usr/share \
- -DQT_QMAKE_EXECUTABLE=/usr/lib/qt4/bin/qmake \
- -DQT_MOC_EXECUTABLE=/usr/lib/qt4/bin/moc \
- -DWITH_SERVER=1 .
+ -DDATA_INSTALL_DIR=/usr/share/hedgewars \
+ -DWITH_SERVER=1 \
+ -DSYSTEM_PHYSFS=OFF .
make
}