# $Id: PKGBUILD 103306 2014-01-02 22:43:13Z spupykin $ # Maintainer: Sergej Pupykin pkgname=hedgewars pkgver=0.9.20.3 pkgrel=1 pkgdesc="turn based strategy, artillery, action and comedy game, featuring the antics of pink hedgehogs with attitude as they battle from the depths of hell to the depths of space." arch=('i686' 'x86_64') url="http://hedgewars.org" license=('GPL' 'custom') depends=('qt4' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'lua51' 'ffmpeg' 'glut') makedepends=('fpc' 'cmake' # haskell specific '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.png) md5sums=('cea4def4e212905026ef29e00447b966' 'eeb14d50df39063549ac5eca9dbc65d1') build() { cd $pkgname-src-$pkgver cmake \ -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DDATA_INSTALL_DIR=/usr/share/hedgewars \ -DNOSERVER=0 . make } package() { cd $pkgname-src-$pkgver make DESTDIR=$pkgdir install install -D -m644 Fonts_LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/Fonts_LICENSE.txt install -D -m644 $srcdir/hedgewars.png $pkgdir/usr/share/pixmaps/hedgewars.png install -D -m644 share/hedgewars/Data/misc/hedgewars.desktop $pkgdir/usr/share/applications/hedgewars.desktop }