1 #Maintainer Jonathan Fine (were.Vire_AT_gmail_DOT_com)
6 pkgdesc='Mantra is an overhead style adventure game inspired by Zelda for the NES. It was originally created for Mac OS 7, but is being rewritten for Mac OS X and Windows.'
8 url='http://www.syzygycult.com/'
10 depends=('alfont' 'dumb')
12 source=('Makefile' 'mantra.patch')
13 md5sums=('f00b3957a3dbf6692d130c806018b957'
14 '1314bc3d99b6d7dcbc3b8dbc9fb3f52d')
17 cd $srcdir || return 1
19 #We only want the souce code and the data files. The original coder put a whole bunch of libs that we dont want in the svn tree
20 svn co https://syzygymantra.svn.sourceforge.net/svnroot/syzygymantra/src syzygymantra/src || return 1
21 svn co https://syzygymantra.svn.sourceforge.net/svnroot/syzygymantra/dats syzygymantra/dats || return 1
23 #With these libs came their headers, but we do not want to mix old and new library headers, so not all the headers are copied from the tree. In order to do this, we need to copy them individually.
24 mkdir -p syzygymantra/include
25 svn cat https://syzygymantra.svn.sourceforge.net/svnroot/syzygymantra/include/GameDefines.h > syzygymantra/include/GameDefines.h || return 1
26 svn cat https://syzygymantra.svn.sourceforge.net/svnroot/syzygymantra/include/GameTypes.h > syzygymantra/include/GameTypes.h || return 1
28 cd syzygymantra || return 1
29 patch -p0 < $srcdir/mantra.patch || return 1
30 mv $srcdir/Makefile ./ || return 1
34 #copy the data files to /usr/share... we dont want them in /usr/bin
35 install -Dm755 mantra $pkgdir/usr/bin/syzygymantra || return 1
36 install -Dm644 dats/GameData.dat $pkgdir/usr/share/syzygymantra/GameData.dat || return 1
37 install -Dm644 dats/Images.dat $pkgdir/usr/share/syzygymantra/Images.dat || return 1
38 install -Dm644 dats/Music.dat $pkgdir/usr/share/syzygymantra/Music.dat || return 1
39 install -Dm644 dats/Saved.dat $pkgdir/usr/share/syzygymantra/Saved.dat || return 1
40 install -Dm755 dats/Sound.dat $pkgdir/usr/share/syzygymantra/Sound.dat || return 1