1 # Contributor: Evangelos Foutras <foutrelis@gmail.com>
2 # Contributer: Matthew Bauer <mjbauer95@gmail.com>
8 pkgdesc="A Super Mario multiplayer game"
10 url="http://smw.72dpiarmy.com/"
12 depends=('gcc-libs' 'sdl_mixer' 'sdl_image' 'desktop-file-utils')
15 source=($_pkgname.desktop
18 md5sums=('78b87b9c99c232ecc9f659a4994da12b'
19 'b7f5ef181e41eb0339be746ea03ff628'
20 '67a5549b9812427feb541ce8d5fb384d')
24 _svntrunk=svn://svn.72dpiarmy.com/smw
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver)
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
39 # rm -rf "$srcdir/$_svnmod-build"
40 # cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
43 patch -p1 -i ../gcc.patch
47 make DESTDIR="$pkgdir" install
49 # Set sane permissions
50 find "$pkgdir/usr/share/games/$_pkgname" -type d -exec chmod 755 {} \;
51 find "$pkgdir/usr/share/games/$_pkgname" -type f -exec chmod 644 {} \;
53 # Install application shortcut and icon
54 install -D -m644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
55 install -D -m644 "$srcdir/$_pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
57 mkdir -p $pkgdir/usr/bin
58 ln -s /usr/games/smw $pkgdir/usr/bin
59 ln -s /usr/games/smw-leveledit $pkgdir/usr/bin
60 ln -s /usr/games/smw-worldedit $pkgdir/usr/bin