blob: 8b15117f318cf6311dada5d42e61839731e4e715 (
plain)
1 # Description: The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
2 # URL: http://www.wesnoth.org/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Danny Rawlins, monster dot romster at gmail dot com
5 # Depends on: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf lua
6
7 name=wesnoth
8 version=1.8.4
9 release=1
10 source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14
15 mkdir build
16 cd build
17
18 cmake ../ \
19 -DCMAKE_INSTALL_PREFIX=/usr \
20 -DENABLE_NLS=FALSE \
21 -DENABLE_DESKTOP_ENTRY=TRUE \
22 -DENABLE_CAMPAIGN_SERVER=FALSE \
23 -DENABLE_SERVER=FALSE
24
25 make
26 make DESTDIR=$PKG install
27
28 find $PKG/usr/share/wesnoth -type f \( \
29 -name 'README' -o \
30 -name 'COPYING.txt' -o \
31 -name 'COPYING' \
32 \) -exec rm {} +
33
34 find $PKG -type d -exec chmod -c go-w {} +
35 rm -r $PKG/usr/share/doc
36 }
|