blob: 405c85a3757945e2ca398cd984c1e057afb21855 (
plain)
1 # Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
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-libx11 sdl_image sdl_mixer sdl_net freetype python
6 # Optional: upx
7
8 name=wesnoth
9 version=1.2.6
10 release=1
11 source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
12
13 build() {
14 cd wesnoth-$version
15
16 if pkginfo -i |grep '^kdebase ' > /dev/null; then
17 local configure='--with-kde'
18 fi
19
20 if pkginfo -i |grep '^gnome ' > /dev/null; then
21 local configure='--with-gnome'
22 fi
23
24 ./configure \
25 --prefix=/usr \
26 --mandir=/usr/man \
27 --disable-nls \
28 --enable-python \
29 $configure
30
31 make
32 make DESTDIR=$PKG install
33
34 find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
35
36 rm \
37 $PKG/usr/share/wesnoth/data/COPYING.txt \
38 $PKG/usr/share/wesnoth/fonts/COPYING
39
40 # compress binary files if upx is installed to save disk space
41 if pkginfo -i |grep '^upx ' > /dev/null; then
42 (
43 cd $PKG/usr/bin
44 upx -9 wesnoth
45 )
46 fi
47 }
|