updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / north-and-south / PKGBUILD
blob123029c218974356bb220e4a4576fd4c8f34f8a5
1 # Contributor: Testuser_01 <siebler_n@gmx.de>
3 pkgname="north-and-south"
4 pkgver="1.0"
5 pkgrel=2
6 pkgdesc="The classic game North & South, to be played with DosBox."
7 url='http://www.abandonia.com/en/games/262/North+%2526+South.html'
8 arch=('i686' 'x86_64')
9 install='north-and-south.install'
10 license='custom-freeware'
11 depends=('dosbox')
12 source=(
13         "http://files.abandonia.com/download.php?game=North+%26+South&secure=6d7091108a14b0f4f5c7606fa7c4011d&td=1252109330"
15 md5sums=(
16         '461e6e4fb6bdfff73a7be6339d324794'
19 build() {
20         mkdir -p -m755 "$pkgdir/opt/" || return 1
21         rm -f $srcdir/download* || return 1
22         cp -ar $srcdir "$pkgdir/opt/north-and-south" || return 1
24         #ok, let's use a script to start the game
26         mkdir -p -m755 /$pkgdir/usr/bin/ || return 1
27         printf "#!${SHELL}
28 if whereis dosbox>/dev/null 2>&1;
29         then
30                 dosbox /opt/north-and-south/north.com
31         else
32                 echo '==> Please get sure to have dosbox installed and have it in your PATH array.'
34 return \$?" >> /$pkgdir/usr/bin/north-and-south.sh || return 1
35         chmod +x /$pkgdir/usr/bin/north-and-south.sh || return 1
36         ln -s north-and-south.sh /$pkgdir/usr/bin/north-and-south || return 1