1 # Contributor: Anders Bergh <anders@archlinuxppc.org>
5 pkgdesc="Neverball and Neverputt. Ball-based games. SVN version"
7 url="http://www.nevercorner.net/forum/"
9 depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'libgl' 'physfs')
11 source=(neverball-svn.desktop
17 md5sums=('2e59745efb1534cd0f6a82163373e486'
18 '641e993d13029b5abb8c4a1cd40750fa'
19 'b92a46a5faf2508c29362e1feb8a2398'
20 'd835af87d3c4901e260d8f3d6138f081'
21 'df67293e4e7318d11ea85450e00be35a'
22 'ce20a6ab55d99d7121ea4803df090d39')
23 _svntrunk=https://s.snth.net/svn/neverball/trunk
29 if [ -d $_svnmod/.svn ]; then
30 (cd $_svnmod && svn up -r $pkgver)
32 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
35 msg "SVN checkout done or server timeout"
36 msg "Starting make..."
38 if [ -d $_svnmod-build ]; then
42 svn export $_svnmod $_svnmod-build
45 [ "$CARCH" = "i686" ] && sed -i 's/-O3/-O2 -march=i686 -mtune=generic -pipe/' Makefile
46 [ "$CARCH" = "x86_64" ] && sed -i 's/-O3/-O3 -march=x86-64 -mtune=generic -pipe/' Makefile
50 install -Dm755 neverball $pkgdir/usr/share/neverball-svn/bin/neverball-svn
51 install -Dm755 neverputt $pkgdir/usr/share/neverball-svn/bin/neverputt-svn
52 install -Dm755 ../neverball-svn $pkgdir/usr/bin/neverball-svn
53 install -Dm755 ../neverputt-svn $pkgdir/usr/bin/neverputt-svn
54 install -Dm644 ../neverball-svn.desktop $pkgdir/usr/share/applications/neverball-svn.desktop
55 install -Dm644 ../neverball-svn.png $pkgdir/usr/share/pixmaps/neverball-svn.png
56 install -Dm644 ../neverputt-svn.desktop $pkgdir/usr/share/applications/neverputt-svn.desktop
57 install -Dm644 ../neverputt-svn.png $pkgdir/usr/share/pixmaps/neverputt-svn.png
58 cp -r data/ $pkgdir/usr/share/neverball-svn
59 find ${startdir}/pkg/usr/share/neverball-svn/data -type f -exec chmod 644 {} \;
62 # vim:set ts=2 sw=2 et: