desktop/wesnoth/PKGBUILD

37 lines
960 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>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=wesnoth
pkgver=1.8.6
pkgrel=1
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/"
depends=('boost' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
makedepends=('cmake')
conflicts=('wesnoth-dev' 'wesnoth-svn')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('f1c3179869b01b61e253e74aeb241034')
build() {
2010-12-12 02:10:16 +08:00
cd $srcdir/$pkgname-$pkgver
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
2010-12-12 02:10:16 +08:00
make DESTDIR=$pkgdir install
}