desktop/wesnoth/PKGBUILD

34 lines
1.0 KiB
Bash
Raw Normal View History

2010-08-19 10:37:44 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=wesnoth
pkgver=1.8.4
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.wesnoth.org/"
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'libvorbis' 'fribidi' 'freetype2' 'gcc-libs' 'pango' 'lua')
makedepends=('boost')
install=wesnoth.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
wesnoth-libpng-1.4.0.patch)
md5sums=('2dce83f835ecce1d505ea60e46b7356f'
'ca7412ffc4682ef55ddf82d56b0e2f08')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np1 -i ../wesnoth-libpng-1.4.0.patch || return 1
./autogen.sh || return 1
./configure --prefix=/usr --localstatedir=/var --enable-tools --enable-editor --enable-server
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}