desktop/wesnoth/PKGBUILD
2014-06-09 17:26:48 +00:00

39 lines
998 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=wesnoth
pkgver=1.10.7
pkgrel=3
pkgdesc="A turn-based strategy game on a fantasy world."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.wesnoth.org/"
depends=('boost-libs' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer'
'sdl_net' 'sdl_ttf')
makedepends=('boost' 'cmake')
conflicts=('wesnoth-dev' 'wesnoth-svn')
categories=('games')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('3f460a494530d32aa5d5d0f19c95efbd')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_CAMPAIGN_SERVER=ON \
-DENABLE_TOOLS=ON \
-DENABLE_OMP=ON \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}