PKGBUILDs/community/hedgewars/PKGBUILD

33 lines
1.4 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=hedgewars
pkgver=0.9.11
pkgrel=2
pkgdesc="Free Worms-like turn based strategy game"
arch=('i686' 'x86_64')
url="http://hedgewars.org"
license=('GPL' 'custom')
depends=('qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf')
makedepends=('fpc' 'cmake')
#makedepends=('fpc' 'cmake' 'ghc' 'haskell-hslogger' 'haskell-openid' 'haskell-utf8-string' 'haskell-http')
source=(http://hedgewars.org/download/$pkgname-src-$pkgver.tar.bz2 \
hedgewars.desktop \
hedgewars.png)
md5sums=('8e0accc23e137ce5dbe6d50b5b8ba2ef'
'48c66a3204d4fa0a69e9aa46f7c31e0c'
'eeb14d50df39063549ac5eca9dbc65d1')
build() {
cd $startdir/src/$pkgname-src-$pkgver
install -D -m644 $startdir/src/hedgewars.png $startdir/pkg/usr/share/pixmaps/hedgewars.png && \
install -D -m644 $startdir/src/hedgewars.desktop $startdir/pkg/usr/share/applications/hedgewars.desktop || return 1
# cmake -DCMAKE_INSTALL_PREFIX=/usr -DDATA_INSTALL_DIR=/usr/share -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DQT_MOC_EXECUTABLE=/usr/bin/moc -DWITH_SERVER=1
cmake -DCMAKE_INSTALL_PREFIX=/usr -DDATA_INSTALL_DIR=/usr/share -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DQT_MOC_EXECUTABLE=/usr/bin/moc
make || return 1
make DESTDIR=$startdir/pkg install || return 1
install -D -m644 Fonts_LICENSE.txt $startdir/pkg/usr/share/licenses/$pkgname/Fonts_LICENSE.txt
}