updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nwn-dedicated-server / PKGBUILD
bloba6074e2fda823aa11bc2bf4bb363fa72b1aa4bd9
1 pkgname=nwn-dedicated-server
2 pkgver=1.69
3 pkgrel=1
4 pkgdesc="Neverwinter Nights dedicated server."
5 arch=(i686 x86_64)
6 url="http://nwn.bioware.com/downloads/standaloneserver.html"
7 license=('unknown')
8 source=(http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer$pkgver.zip)
9 noextract=(NWNDedicatedServer$pkgver.zip)
10 makedepends=('unzip')
11 md5sums=('4c62f62d9511ff6a8e7b25437d90ff04')
13 build() {
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
23         #Copy all files
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