summaryrefslogtreecommitdiff
path: root/extra/wesnoth/PKGBUILD
blob: 9a2ef8d08a14b7ad2157b0deb8d389ba1adad434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 132797 2011-07-26 09:16:15Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Jacobo Arvelo <unix4all@ya.com>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>

pkgname=wesnoth
pkgver=1.8.6
pkgrel=2
pkgdesc="A turn-based strategy game on a fantasy world"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.wesnoth.org/"
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data=${pkgver}" 'dbus-core')
makedepends=('boost')
install=wesnoth.install
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
        wesnoth-libpng-1.4.0.patch
        wesnoth-1.8.6-boost-foreach.patch)
md5sums=('f1c3179869b01b61e253e74aeb241034'
         'ca7412ffc4682ef55ddf82d56b0e2f08'
         'dc414ab7e1334941548e9db6db9c2460')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/wesnoth-libpng-1.4.0.patch"
  patch -Np1 -i "${srcdir}/wesnoth-1.8.6-boost-foreach.patch"
  ./autogen.sh
  ./configure --prefix=/usr --localstatedir=/var --enable-tools --enable-editor --enable-server
  make DESTDIR="${pkgdir}" install-exec
}