contrib/wesnoth/Pkgfile

37 lines
891 B
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: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf lua
2008-03-03 14:15:20 +01:00
name=wesnoth
version=1.8.4
2010-06-20 09:32:09 +02:00
release=1
source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.bz2)
2008-03-03 14:15:20 +01:00
build() {
2008-11-04 12:21:52 +01:00
cd $name-$version
2008-03-03 14:15:20 +01:00
2009-10-22 16:04:05 +02:00
mkdir build
cd build
2010-06-20 09:32:09 +02:00
2009-10-22 16:04:05 +02:00
cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_NLS=FALSE \
-DENABLE_DESKTOP_ENTRY=TRUE \
-DENABLE_CAMPAIGN_SERVER=FALSE \
-DENABLE_SERVER=FALSE
2008-03-03 14:15:20 +01:00
make
make DESTDIR=$PKG install
2009-10-22 16:04:05 +02:00
find $PKG/usr/share/wesnoth -type f \( \
-name 'README' -o \
-name 'COPYING.txt' -o \
-name 'COPYING' \
\) -exec rm {} +
2008-04-06 08:44:42 +02:00
find $PKG -type d -exec chmod -c go-w {} +
2008-04-06 08:44:42 +02:00
rm -r $PKG/usr/share/doc
2008-03-03 14:15:20 +01:00
}