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
|
2009-11-29 19:45:39 +11:00
|
|
|
# Depends on: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
name=wesnoth
|
2009-10-23 01:04:05 +11:00
|
|
|
version=1.6.5
|
2009-11-29 19:45:39 +11:00
|
|
|
release=2
|
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-03-04 00:15:20 +11:00
|
|
|
|
2009-10-23 01:04:05 +11:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ../ \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DENABLE_NLS=FALSE \
|
|
|
|
-DENABLE_DESKTOP_ENTRY=TRUE \
|
|
|
|
-DENABLE_CAMPAIGN_SERVER=FALSE \
|
|
|
|
-DENABLE_SERVER=FALSE
|
2008-03-04 00:15:20 +11:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2009-10-23 01:04:05 +11:00
|
|
|
find $PKG/usr/share/wesnoth -type f \( \
|
|
|
|
-name 'README' -o \
|
|
|
|
-name 'COPYING.txt' -o \
|
|
|
|
-name 'COPYING' \
|
|
|
|
\) -exec rm {} +
|
2008-04-06 16:44:42 +10:00
|
|
|
|
2009-11-29 19:45:39 +11:00
|
|
|
find $PKG -type d -exec chmod -c go-w {} +
|
2008-04-06 16:44:42 +10:00
|
|
|
rm -r $PKG/usr/share/doc
|
2008-03-04 00:15:20 +11:00
|
|
|
}
|