2008-05-05 15:06:34 +10:00
|
|
|
# Description: Server for Wesnoth.
|
|
|
|
# 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
|
2012-06-13 20:28:12 +10:00
|
|
|
# Depends on: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf lua libidn
|
2008-05-05 15:06:34 +10:00
|
|
|
|
|
|
|
name=wesnoth-server
|
2012-03-02 22:40:48 +11:00
|
|
|
version=1.10.1
|
2008-07-26 12:13:07 +10:00
|
|
|
release=1
|
2011-01-12 01:30:21 +11:00
|
|
|
source=(http://downloads.sourceforge.net/project/wesnoth/wesnoth-${version%.*}/wesnoth-$version/wesnoth-$version.tar.bz2
|
2008-05-05 15:06:34 +10:00
|
|
|
wesnothd.rc)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd wesnoth-$version
|
|
|
|
|
2010-06-20 18:45:04 +10:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2008-05-05 15:06:34 +10:00
|
|
|
|
2010-06-20 18:45:04 +10:00
|
|
|
cmake ../ \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2012-03-02 22:40:48 +11:00
|
|
|
-DMANDIR=/usr/man \
|
2010-06-20 18:45:04 +10:00
|
|
|
-DENABLE_NLS=FALSE \
|
|
|
|
-DENABLE_CAMPAIGN_SERVER=TRUE \
|
|
|
|
-DENABLE_SERVER=TRUE \
|
|
|
|
-DSERVER_UID=root \
|
|
|
|
-DSERVER_GID=wesnothd \
|
|
|
|
-DFIFO_DIR=/var/run/wesnothd
|
2008-05-05 15:06:34 +10:00
|
|
|
|
2010-06-20 18:45:04 +10:00
|
|
|
make campaignd wesnothd
|
2008-05-05 15:06:34 +10:00
|
|
|
make DESTDIR=$PKG install
|
2008-07-08 05:14:40 +10:00
|
|
|
install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth
|
2010-06-20 18:45:04 +10:00
|
|
|
chown root:wesnothd $PKG/usr/bin/{wesnothd,campaignd}
|
|
|
|
chmod 0740 -c $PKG/usr/bin/{wesnothd,campaignd}
|
|
|
|
chmod 0770 -c $PKG/var/run/wesnothd
|
|
|
|
|
|
|
|
rm \
|
|
|
|
$PKG/usr/bin/wesnoth \
|
|
|
|
$PKG/usr/man/man6/wesnoth.6 \
|
|
|
|
$PKG/usr/share/applications/{wesnoth,wesnoth_editor}.desktop
|
2008-05-05 15:06:34 +10:00
|
|
|
|
2010-06-20 18:45:04 +10:00
|
|
|
rm -r \
|
|
|
|
$PKG/usr/share/doc \
|
|
|
|
$PKG/usr/share/pixmaps \
|
|
|
|
$PKG/usr/share/wesnoth/data \
|
|
|
|
$PKG/usr/share/wesnoth
|
|
|
|
|
|
|
|
rmdir $PKG/usr/share/applications $PKG/usr/share
|
|
|
|
}
|