1
0
forked from ports/contrib
contrib/wesnoth/Pkgfile

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2007-07-04 16:46:40 +10:00
# Description: The Battle for Wesnoth is a free, turn-based strategy game with a fantasy theme. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand in any number of other adventures.
# URL: http://www.wesnoth.org/
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
# Depends on: xorg sdl_image sdl_mixer sdl_net freetype python
2007-10-04 00:53:22 +10:00
# Nice To Have: upx
2007-07-04 16:46:40 +10:00
name=wesnoth
2007-08-07 03:49:26 +10:00
version=1.2.6
2007-07-04 16:46:40 +10:00
release=1
source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
build() {
cd wesnoth-$version
2007-10-04 00:53:22 +10:00
if pkginfo -i |grep '^kdebase ' > /dev/null; then
2007-07-04 16:46:40 +10:00
local configure='--with-kde'
fi
2007-10-04 00:53:22 +10:00
if pkginfo -i |grep '^gnome ' > /dev/null; then
2007-07-04 16:46:40 +10:00
local configure='--with-gnome'
fi
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--enable-python \
$configure
make
make DESTDIR=$PKG install
2007-10-04 00:53:22 +10:00
2007-07-04 16:46:40 +10:00
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
rm $PKG/usr/share/wesnoth/data/COPYING.txt
2007-10-04 00:53:22 +10:00
# compress binary files if upx is installed to save disk space
if pkginfo -i |grep '^upx ' > /dev/null; then
(
cd $PKG/usr/bin
upx -9 wesnoth
)
fi
2007-07-04 16:46:40 +10:00
}