desktop/wesnoth/PKGBUILD

39 lines
998 B
Bash
Raw Normal View History

#
2010-12-12 02:10:16 +08:00
# Games Packages for Chakra, part of chakra-project.org
#
2010-12-12 02:10:16 +08:00
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=wesnoth
2013-08-18 06:14:24 +08:00
pkgver=1.10.7
pkgrel=2
2010-12-12 02:10:16 +08:00
pkgdesc="A turn-based strategy game on a fantasy world."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.wesnoth.org/"
2012-01-23 14:05:39 +08:00
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')
2012-03-07 19:00:46 +08:00
categories=('games')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
2013-08-18 06:14:24 +08:00
md5sums=('3f460a494530d32aa5d5d0f19c95efbd')
build() {
2010-12-12 02:10:16 +08:00
cd $srcdir/$pkgname-$pkgver
2012-02-28 07:52:26 +08:00
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
2013-08-18 06:14:24 +08:00
-DENABLE_CAMPAIGN_SERVER=ON \
-DENABLE_TOOLS=ON \
-DENABLE_OMP=ON \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
2010-12-12 02:10:16 +08:00
make DESTDIR=$pkgdir install
}