contrib/wesnoth-server/Pkgfile

48 lines
1.2 KiB
Plaintext
Raw Normal View History

2008-05-05 07:06:34 +02: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
# Depends on: boost cmake pango sdl_image sdl_mixer sdl_net sdl_ttf lua
2008-05-05 07:06:34 +02:00
name=wesnoth-server
2011-07-08 05:00:18 +02:00
version=1.8.6
2008-07-26 04:13:07 +02:00
release=1
2011-01-11 15:30:21 +01:00
source=(http://downloads.sourceforge.net/project/wesnoth/wesnoth-${version%.*}/wesnoth-$version/wesnoth-$version.tar.bz2
2008-05-05 07:06:34 +02:00
wesnothd.rc)
build() {
cd wesnoth-$version
2010-06-20 10:45:04 +02:00
mkdir build
cd build
2008-05-05 07:06:34 +02:00
2010-06-20 10:45:04 +02:00
cmake ../ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_NLS=FALSE \
-DENABLE_CAMPAIGN_SERVER=TRUE \
-DENABLE_SERVER=TRUE \
-DSERVER_UID=root \
-DSERVER_GID=wesnothd \
-DFIFO_DIR=/var/run/wesnothd
2008-05-05 07:06:34 +02:00
2010-06-20 10:45:04 +02:00
make campaignd wesnothd
2008-05-05 07:06:34 +02:00
make DESTDIR=$PKG install
install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth
2010-06-20 10:45:04 +02: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 07:06:34 +02:00
2010-06-20 10:45:04 +02: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
}