contrib/wesnoth/Pkgfile
2011-07-08 20:29:10 +10:00

37 lines
926 B
Plaintext

# Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
# URL: http://www.wesnoth.org/
# 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
name=wesnoth
version=1.8.6
release=1
source=(http://downloads.sourceforge.net/project/$name/$name-${version%.*}/$name-$version/$name-$version.tar.bz2)
build() {
cd $name-$version
mkdir build
cd build
cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_NLS=FALSE \
-DENABLE_DESKTOP_ENTRY=TRUE \
-DENABLE_CAMPAIGN_SERVER=FALSE \
-DENABLE_SERVER=FALSE
make
make DESTDIR=$PKG install
find $PKG/usr/share/wesnoth -type f \( \
-name 'README' -o \
-name 'COPYING.txt' -o \
-name 'COPYING' \
\) -exec rm {} +
find $PKG -type d -exec chmod -c go-w {} +
rm -r $PKG/usr/share/doc
}