1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="New user interface for spim, a MIPS simulator"
7 url="http://spimsimulator.sourceforge.net/"
10 makedepends=('subversion')
14 __svntrunk="https://spimsimulator.svn.sourceforge.net/svnroot/spimsimulator"
15 __modules=('QtSpim' 'CPU' 'Documentation' 'Setup')
19 if [ ! -d "$srcdir/src" ]; then
24 msg "Connecting to SVN server......."
25 for i in "${__modules[@]}"; do
26 if [ -d "$i/.svn" ]; then
27 cd "$i" && svn up -r $__svnrev
29 svn co "$__svntrunk/$i" --config-dir ./ -r $__svnrev "$i"
32 msg "SVN checkout done or server timeout"
34 if [ -e "$srcdir/build" ]; then
35 rm -rf "$srcdir/build"
37 cp -a "$srcdir/src" "$srcdir/build"
39 msg "Starting make..."
40 cd "$srcdir/build/QtSpim"
48 cd "$srcdir/build/QtSpim"
49 install -d -m755 "$pkgdir"/usr/share/qtspim
50 cp -r help "$pkgdir"/usr/share/qtspim/
51 rm -rf "$pkgdir"/usr/share/qtspim/help/.svn
52 install -D -m755 QtSpim "$pkgdir"/usr/bin/qtspim
55 install -D -m644 Documentation/spim.man "$pkgdir"/usr/share/man/man1/qtspim.1
56 install -D -m644 Setup/qtspim_debian_deployment/qtspim.desktop "$pkgdir"/usr/share/applications/qtspim.desktop
57 install -D -m644 Setup/qtspim_debian_deployment/copyright "$pkgdir"/usr/share/licenses/$pkgname/copyright
58 install -D -m644 Setup/NewIcon48x48.png "$pkgdir"/usr/share/qtspim/qtspim.png
61 # vim:set ts=2 sw=2 et: