410114e596
(cherry picked from commit 73599fba1628faf6191c957ae5e131b6717b807c)
37 lines
895 B
Plaintext
37 lines
895 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.4
|
|
release=1
|
|
source=(http://downloads.sourceforge.net/sourceforge/$name/$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
|
|
}
|