1 # Maintainer: Jan Dlabal <dlabaljan at gmail dot com>
5 pkgdesc="Skill Angband - based on angband and Oangband"
7 # Just a mirror on my server, all the official ones seem dead
8 url="http://houbysoft.com/pub/sangband"
10 depends=('sdl_mixer' 'sdl_ttf')
11 source=("http://houbysoft.com/pub/sangband/sang100src.tar.gz")
12 md5sums=('11a6b8ac1d1672753726a69d7d1a6106')
15 cd $srcdir/sang100src/src
18 make -f Makefile.sdl install
21 mkdir -p $pkgdir/opt/$pkgname
22 cp -r $srcdir/sang100src/lib $pkgname $pkgdir/opt/$pkgname
24 # Allow users for save files and such
25 chown root:users $pkgdir/opt/$pkgname -R
26 chmod 774 $pkgdir/opt/$pkgname -R
28 # Put a launch script in the path
29 mkdir -p $pkgdir/usr/bin
30 echo \#\!/bin/sh >> $pkgdir/usr/bin/$pkgname
31 echo cd /opt/$pkgname >> $pkgdir/usr/bin/$pkgname
32 echo ./$pkgname >> $pkgdir/usr/bin/$pkgname
33 chmod 755 $pkgdir/usr/bin/$pkgname
35 install -D -m644 $srcdir/sang100src/docs/copying.txt "$pkgdir/usr/share/$pkgname/LICENSE"