1 pkgname=nwn-dedicated-server
4 pkgdesc="Neverwinter Nights dedicated server."
6 url="http://nwn.bioware.com/downloads/standaloneserver.html"
8 source=(http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer$pkgver.zip)
9 noextract=(NWNDedicatedServer$pkgver.zip)
11 md5sums=('4c62f62d9511ff6a8e7b25437d90ff04')
14 install -d $srcdir/$pkgname-$pkgver
15 cd $srcdir/$pkgname-$pkgver
16 echo "Extracting source zip"
17 unzip -qo ../NWNDedicatedServer$pkgver.zip
19 #Extract linux server scripts
20 tar xf linuxdedserver*.tar.gz
21 chmod +x nwserver fixinstall
24 install -d $pkgdir/opt/nwn-dedicated-server
25 install -d $pkgdir/usr/bin
26 echo -e '#!/bin/sh\ncd /opt/nwn-dedicated-server\n./nwserver' > $pkgdir/usr/bin/nwserver
27 chmod +x $pkgdir/usr/bin/nwserver
28 mv * $pkgdir/opt/nwn-dedicated-server