contrib/wesnoth12/Pkgfile

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2007-10-24 08:20:53 +02:00
# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
2007-07-04 08:46:40 +02:00
# 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
2008-03-14 11:11:23 +01:00
# Depends on: xorg-libx11 sdl_image sdl_mixer sdl_net freetype boost
2007-10-24 08:20:53 +02:00
# Optional: upx
2007-07-04 08:46:40 +02:00
2008-03-03 14:13:13 +01:00
name=wesnoth12
2007-11-28 00:15:47 +01:00
version=1.2.8
2007-07-04 08:46:40 +02:00
release=1
source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
build() {
cd wesnoth-$version
2007-10-03 16:53:22 +02:00
if pkginfo -i |grep '^kdebase ' > /dev/null; then
2007-07-04 08:46:40 +02:00
local configure='--with-kde'
fi
2007-11-28 00:15:47 +01:00
if pkginfo -i |grep '^kdebase3 ' > /dev/null; then
local configure='--with-kde'
fi
2007-10-03 16:53:22 +02:00
if pkginfo -i |grep '^gnome ' > /dev/null; then
2007-07-04 08:46:40 +02:00
local configure='--with-gnome'
fi
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--enable-python \
$configure
make
make DESTDIR=$PKG install
2007-10-03 16:53:22 +02:00
2007-07-04 08:46:40 +02:00
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
2007-10-24 08:20:53 +02:00
rm \
$PKG/usr/share/wesnoth/data/COPYING.txt \
$PKG/usr/share/wesnoth/fonts/COPYING
2007-10-03 16:53:22 +02: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 08:46:40 +02:00
}