summaryrefslogtreecommitdiff
path: root/wesnoth-server/Pkgfile
blob: d747dd0a48e706af997b96f97db75c9c3333ce4f (plain)
    1 # Description: Server for Wesnoth.
    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-server
    8 version=1.8.6
    9 release=1
   10 source=(http://downloads.sourceforge.net/project/wesnoth/wesnoth-${version%.*}/wesnoth-$version/wesnoth-$version.tar.bz2
   11 	wesnothd.rc)
   12 
   13 build() {
   14 	cd wesnoth-$version
   15 
   16 	mkdir build
   17 	cd build
   18 
   19 	cmake ../ \
   20 		-DCMAKE_INSTALL_PREFIX=/usr \
   21 		-DENABLE_NLS=FALSE \
   22 		-DENABLE_CAMPAIGN_SERVER=TRUE \
   23 		-DENABLE_SERVER=TRUE \
   24 		-DSERVER_UID=root \
   25 		-DSERVER_GID=wesnothd \
   26 		-DFIFO_DIR=/var/run/wesnothd
   27 
   28 	make campaignd wesnothd
   29 	make DESTDIR=$PKG install
   30 	install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth
   31 	chown root:wesnothd $PKG/usr/bin/{wesnothd,campaignd}
   32 	chmod 0740 -c $PKG/usr/bin/{wesnothd,campaignd}
   33 	chmod 0770 -c $PKG/var/run/wesnothd
   34 
   35 	rm \
   36 		$PKG/usr/bin/wesnoth \
   37 		$PKG/usr/man/man6/wesnoth.6 \
   38 		$PKG/usr/share/applications/{wesnoth,wesnoth_editor}.desktop
   39 
   40 	rm -r \
   41 		$PKG/usr/share/doc \
   42 		$PKG/usr/share/pixmaps \
   43 		$PKG/usr/share/wesnoth/data \
   44 		$PKG/usr/share/wesnoth
   45 
   46 	rmdir $PKG/usr/share/applications $PKG/usr/share
   47 }

Generated by cgit