contrib/wesnoth-server/Pkgfile

38 lines
978 B
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: sdl_image sdl_mixer sdl_net freetype boost
2008-05-05 07:06:34 +02:00
name=wesnoth-server
2008-12-18 17:40:18 +01:00
version=1.4.7
2008-07-26 04:13:07 +02:00
release=1
source=(http://downloads.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2
2008-05-05 07:06:34 +02:00
wesnothd.rc)
build() {
cd wesnoth-$version
rm po/*/*.po
sed -i \
-e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--disable-game \
--enable-server
make
make DESTDIR=$PKG install
install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth
2008-07-26 04:13:07 +02:00
chown root:wesnothd $PKG/usr/bin/wesnothd
chown root:wesnothd $PKG/usr/var/run/wesnothd
chmod 0740 $PKG/usr/bin/wesnothd
chmod 0770 $PKG/usr/var/run/wesnothd
2008-05-05 07:06:34 +02:00
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
}