2008-03-04 00:15:20 +11:00
|
|
|
# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
|
|
|
|
# URL: http://www.wesnoth.org/
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
|
|
# Packager: Danny Rawlins, monster dot romster at gmail dot com
|
2008-05-13 13:14:02 +10:00
|
|
|
# Depends on: sdl_image sdl_mixer sdl_net freetype boost
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
name=wesnoth
|
2008-12-19 03:38:20 +11:00
|
|
|
version=1.4.7
|
2008-03-04 00:15:20 +11:00
|
|
|
release=1
|
2009-07-09 19:11:49 +10:00
|
|
|
source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
build() {
|
2008-11-04 22:21:52 +11:00
|
|
|
cd $name-$version
|
2008-05-08 18:56:51 +10:00
|
|
|
rm po/*/*.po
|
2008-03-04 00:15:20 +11:00
|
|
|
|
2008-05-08 18:56:51 +10:00
|
|
|
sed -i \
|
|
|
|
-e 's/USE_NLS=yes/USE_NLS=no/' \
|
|
|
|
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--disable-nls \
|
2008-11-04 22:21:52 +11:00
|
|
|
--enable-python
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
|
2008-03-14 22:37:40 +11:00
|
|
|
find $PKG/usr/share/wesnoth -type f -name 'README' -delete
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
rm \
|
|
|
|
$PKG/usr/share/wesnoth/data/COPYING.txt \
|
|
|
|
$PKG/usr/share/wesnoth/fonts/COPYING
|
2008-04-06 16:44:42 +10:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
2008-03-04 00:15:20 +11:00
|
|
|
}
|