1 # Contributor: Testuser_01 <siebler_n@gmx.de>
3 pkgname="north-and-south"
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'
9 install='north-and-south.install'
10 license='custom-freeware'
13 "http://files.abandonia.com/download.php?game=North+%26+South&secure=6d7091108a14b0f4f5c7606fa7c4011d&td=1252109330"
16 '461e6e4fb6bdfff73a7be6339d324794'
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
28 if whereis dosbox>/dev/null 2>&1;
30 dosbox /opt/north-and-south/north.com
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