PKGBUILD 1.23 KB
Newer Older
1 2 3
#
# Games Packages for Chakra, part of chakra-project.org
#
4
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
5 6

pkgname=hedgewars
7
pkgver=0.9.18
8
_pkgver=${pkgver}-3
9
pkgrel=3
10
pkgdesc="Free turn based strategy game similar to Worms"
11 12
arch=('i686' 'x86_64')
url="http://hedgewars.org"
13
license=('GPL2')
14
depends=('ffmpeg' 'lua' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu')
15 16
makedepends=('fpc' 'cmake' 'ghc' 'haskell-bytestring-show' 'haskell-utf8-string' 'haskell-dataenc' 'haskell-network' 
'haskell-hslogger' 'haskell-vector')
Giuseppe's avatar
Giuseppe committed
17
categories=('games')
18 19
source=(http://download.gna.org/$pkgname/$pkgname-src-${_pkgver}.tar.bz2)
md5sums=('02465736fdcf48feea1cacaa0aa5960e')
20 21 22

build() {
  cd $srcdir/$pkgname-src-$pkgver
23 24 25 26 27 28 29 30
  
  # Patches.
  sed -e "/^instance NFData B.ByteString\$/d" -i "gameServer/Actions.hs"
  
  mkdir -p build && cd build
  cmake \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
31 32 33 34 35 36 37 38
        ..
  make
}
 
package() {
  cd $srcdir/$pkgname-src-$pkgver/build
  make DESTDIR=$pkgdir install

39 40 41
  # DejaVu Font.
  rm $pkgdir/usr/share/$pkgname/Data/Fonts/DejaVuSans-Bold.ttf
  ln -s /usr/share/fonts/TTF/DejaVuSans-Bold.ttf $pkgdir/usr/share/$pkgname/Data/Fonts/DejaVuSans-Bold.ttf
42
}