contrib/wesnoth/Pkgfile
2008-12-19 03:44:42 +11:00

38 lines
937 B
Plaintext

# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
# URL: http://www.wesnoth.org/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
# Depends on: sdl_image sdl_mixer sdl_net freetype boost
name=wesnoth
version=1.4.7
release=1
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
build() {
cd $name-$version
rm po/*/*.po
sed -i \
-e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--enable-python
make
make DESTDIR=$PKG install
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
find $PKG/usr/share/wesnoth -type f -name 'README' -delete
rm \
$PKG/usr/share/wesnoth/data/COPYING.txt \
$PKG/usr/share/wesnoth/fonts/COPYING
rm -r $PKG/usr/share/doc
}