contrib/wesnoth/Pkgfile

39 lines
1007 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
2012-06-13 12:14:44 +02:00
# Depends on: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf lua libidn
2008-03-03 14:15:20 +01:00
name=wesnoth
2012-03-02 12:47:03 +01:00
version=1.10.1
2010-06-20 09:32:09 +02:00
release=1
2011-01-11 15:25:04 +01:00
source=(http://downloads.sourceforge.net/project/$name/$name-${version%.*}/$name-$version/$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 \
2012-03-02 12:47:03 +01:00
-DMANDIR=/usr/man \
2009-10-22 16:04:05 +02:00
-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
2012-03-02 12:47:03 +01:00
# wont run if you reamove README and COPYING
# 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
}