desktop/hedgewars/PKGBUILD

53 lines
1.6 KiB
Bash
Raw Normal View History

pkgname=hedgewars
2015-04-06 23:00:05 +08:00
pkgver=0.9.21.1
2013-06-01 03:18:33 +08:00
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')
2015-02-25 21:37:44 +08:00
depends=('ffmpeg' 'lua' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu' 'freeglut' 'physfs')
makedepends=('fpc' 'cmake'
# haskell specific
'ghc'
'haskell-network'
'haskell-bytestring-show'
'haskell-utf8-string'
'haskell-dataenc'
'haskell-hslogger'
'haskell-vector'
'haskell-entropy'
'haskell-sha'
'haskell-zlib'
'haskell-random')
2012-03-07 19:00:46 +08:00
categories=('games')
2015-02-25 21:37:44 +08:00
source=("http://download.gna.org/$pkgname/$pkgname-src-${pkgver}.tar.bz2"
hedgewars.png)
2015-04-06 23:00:05 +08:00
md5sums=('5c87b1ff54c861ae0cae6a9c1198f957'
2015-02-25 21:37:44 +08:00
'eeb14d50df39063549ac5eca9dbc65d1')
2015-04-06 23:00:05 +08:00
prepare() {
cd $pkgname-src-*
sed -i 's|instance NFData (Chan a)$|instance NFData (Chan a) where rnf x = seq x ()|' gameServer/CoreTypes.hs
}
build() {
2015-04-06 23:00:05 +08:00
cd $srcdir/$pkgname-src-*
mkdir -p build && cd build
2015-04-06 23:00:05 +08:00
#Don't know why ld can't link to haskell-sha correctly,disable it.
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
2015-04-06 23:00:05 +08:00
-DCMAKE_BUILD_TYPE="Release" \
2015-02-25 21:37:44 +08:00
-DDATA_INSTALL_DIR=/usr/share/hedgewars \
-DNOSERVER=1 \
..
make
}
package() {
2015-04-06 23:00:05 +08:00
cd $srcdir/$pkgname-src-*/build
make DESTDIR=$pkgdir install
2015-04-06 23:00:05 +08:00
install -D -m644 $srcdir/hedgewars-src-*/Fonts_LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/Fonts_LICENSE.txt
2015-02-25 21:37:44 +08:00
install -D -m644 $srcdir/hedgewars.png $pkgdir/usr/share/pixmaps/hedgewars.png
2015-04-06 23:00:05 +08:00
install -D -m644 $srcdir/hedgewars-src-*/share/hedgewars/Data/misc/hedgewars.desktop $pkgdir/usr/share/applications/hedgewars.desktop
}