blob: 93f240286c63a3a1b44719f0cfa56ababceba84a (
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: sdl_image sdl_mixer sdl_net freetype boost
6
7 name=wesnoth-server
8 version=1.4.4
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2
11 wesnothd.rc)
12
13 build() {
14 cd wesnoth-$version
15 rm po/*/*.po
16
17 sed -i \
18 -e 's/USE_NLS=yes/USE_NLS=no/' \
19 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
20
21 ./configure \
22 --prefix=/usr \
23 --mandir=/usr/man \
24 --disable-nls \
25 --disable-game \
26 --enable-server
27
28 make
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
32 chown root:wesnothd $PKG/usr/var/run/wesnothd
33 chmod 0740 $PKG/usr/bin/wesnothd
34 chmod 0770 $PKG/usr/var/run/wesnothd
35 find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
36 }
|