desktop/hedgewars/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
pkgname=hedgewars
2013-12-26 18:32:53 +08:00
pkgver=0.9.20
2013-06-01 03:18:33 +08:00
_pkgver=${pkgver}
pkgrel=1
2012-11-01 19:15:01 +08:00
pkgdesc="Free turn based strategy game similar to Worms"
2013-12-26 18:32:53 +08:00
arch=('x86_64')
url="http://hedgewars.org"
2011-09-22 23:55:46 +08:00
license=('GPL2')
2013-12-26 18:32:53 +08:00
depends=('ffmpeg' 'lua' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu' 'freeglut')
2012-11-01 19:15:01 +08:00
makedepends=('fpc' 'cmake' 'ghc' 'haskell-bytestring-show' 'haskell-utf8-string' 'haskell-dataenc' 'haskell-network'
2013-06-01 03:18:33 +08:00
'haskell-hslogger' 'haskell-random' 'haskell-vector')
2012-03-07 19:00:46 +08:00
categories=('games')
2013-12-26 18:32:53 +08:00
source=("http://download.gna.org/$pkgname/$pkgname-src-${_pkgver}.tar.bz2"
'ffmpeg2.0.patch')
md5sums=('7ee1b23e51053d34feb84464184f60fa'
'da84d64a252579236d3ff0cc6e008e72')
2013-12-26 18:32:53 +08:00
prepare() {
cd $pkgname-src-$pkgver
patch -p1 <$srcdir/ffmpeg2.0.patch
sed -e "/^instance NFData B.ByteString\$/d" -i "gameServer/Actions.hs"
}
build() {
cd $srcdir/$pkgname-src-$pkgver
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd $srcdir/$pkgname-src-$pkgver/build
make DESTDIR=$pkgdir install
2011-09-22 23:55:46 +08:00
# 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
}