blob: 923dca9af035b141d7cf6dfd152d34f5e6fa8bc2 (
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, monster dot romster at gmail dot com
4 # Packager: Danny Rawlins, monster dot romster at gmail dot com
5 # Depends on: sdl_image sdl_mixer sdl_net freetype boost
6
7 name=wesnoth
8 version=1.4.7
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14 rm po/*/*.po
15
16 sed -i \
17 -e 's/USE_NLS=yes/USE_NLS=no/' \
18 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
19
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/man \
23 --disable-nls \
24 --enable-python
25
26 make
27 make DESTDIR=$PKG install
28
29 find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
30 find $PKG/usr/share/wesnoth -type f -name 'README' -delete
31
32 rm \
33 $PKG/usr/share/wesnoth/data/COPYING.txt \
34 $PKG/usr/share/wesnoth/fonts/COPYING
35
36 rm -r $PKG/usr/share/doc
37 }
|