contrib/wesnoth/Pkgfile

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2008-03-03 14:15:20 +01:00
# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
# URL: http://www.wesnoth.org/
2008-03-26 03:45:31 +01:00
# 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
2008-03-03 14:15:20 +01:00
name=wesnoth
2008-09-11 11:48:48 +02:00
version=1.4.5
2008-03-03 14:15:20 +01:00
release=1
source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
build() {
cd wesnoth-$version
2008-05-08 10:56:51 +02:00
rm po/*/*.po
2008-03-03 14:15:20 +01:00
2008-05-08 10:56:51 +02:00
sed -i \
-e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
2008-03-03 14:15:20 +01:00
2008-05-08 10:56:51 +02:00
if pkginfo -i |grep '^kdebase ' > /dev/null; then
local configure='--with-kde'
fi
2008-03-03 14:15:20 +01:00
2008-05-08 10:56:51 +02:00
if pkginfo -i |grep '^gnome ' > /dev/null; then
local configure='--with-gnome'
fi
2008-03-03 14:15:20 +01:00
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--enable-python \
$configure
make
make DESTDIR=$PKG install
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
2008-03-14 12:37:40 +01:00
find $PKG/usr/share/wesnoth -type f -name 'README' -delete
2008-03-03 14:15:20 +01:00
rm \
$PKG/usr/share/wesnoth/data/COPYING.txt \
$PKG/usr/share/wesnoth/fonts/COPYING
2008-04-06 08:44:42 +02:00
rm -r $PKG/usr/share/doc
2008-03-03 14:15:20 +01:00
}