blob: 380ae435fc25abb3034ea0253a6e1ee11f58bca5 (
plain)
1 # Description: The Battle for Wesnoth is a free, turn-based strategy game with a fantasy theme. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures.
2 # URL: http://www.wesnoth.org/
3 # Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
4 # Packager: Danny Rawlins, romster at shortcircuit dot net dot au
5 # Depends on: xorg sdl_image sdl_mixer sdl_net freetype python
6
7 name=wesnoth
8 version=1.2.5
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
11
12 build() {
13 cd wesnoth-$version
14
15 if pkginfo -i |grep '^kdebase '
16 then
17 local configure='--with-kde'
18 fi
19
20 if pkginfo -i |grep '^gnome '
21 then
22 local configure='--with-gnome'
23 fi
24
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/man \
28 --disable-nls \
29 --enable-python \
30 $configure
31
32 make
33 make DESTDIR=$PKG install
34 find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
35 rm $PKG/usr/share/wesnoth/data/COPYING.txt
36 }
|