1 # Maintainer: Michael Kogan <photon89 at gmail dot com>
2 # Contributor: Lauri Niskanen <ape@ape3000.com>
3 # Contributor: Travis Nickles <ryoohki7@yahoo.com>
4 # Contributor: Stefan Lohmaier <noneuss at gmail dot com>
9 pkgdesc="SVN version of StepMania 4.0"
10 url="http://www.stepmania.com/wiki/StepMania_4.0"
13 depends=('gtk2' 'libmad' 'libtheora' 'mesa' 'ffmpeg')
14 provides=('stepmania')
15 makedepends=('pkgconfig' 'subversion')
16 source=(loading.xpm $pkgname-gcc43.patch $pkgname-multiuser.patch \
17 $pkgname-window-icons.patch $pkgname.desktop $pkgname.sh $pkgname.xpm \
18 $pkgname-autogen.patch $pkgname-libpng14.patch $pkgname-build.patch)
19 md5sums=('9f6a3f3aa5a7f079c9e32bc8eab3dabc'
20 'b298f7fcffa7f65ccd3b29131dbb5b9b'
21 'c9599191b7e6d77ba3ea5d99409c53f5'
22 '958f3644d54978f01745be570979bb88'
23 '0fefe966a945be7eab0d7c193f1f4738'
24 '277aa7e3bf7559fda823789c336f0b57'
25 '259578c54057050620151e530eb1c5af'
26 '770895e15e8c534da625a57dc775b22e'
27 '3a98d49cd1d9fc954697a13505182f75'
28 '7e3c164022138e4bc74bfa5d874c3292')
30 _svntrunk=https://svn.stepmania.com/svn/trunk/stepmania/
36 msg "Connecting to StepMania SVN server...."
37 svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
39 msg "SVN checkout done or server timeout"
40 msg "Starting make..."
42 #cp -f loading.xpm $_svnmod/src/arch/LoadingWindow
43 #cp -f $pkgname.xpm $_svnmod/src/arch/LoadingWindow/stepmania.xpm
44 #cp -f $pkgname.xpm $_svnmod/src/archutils/Unix/stepmania.xpm
47 #patch -Np0 -i $srcdir/$pkgname-gcc43.patch
48 #patch -Np0 -i $srcdir/$pkgname-multiuser.patch
49 #patch -Np1 -i $srcdir/$pkgname-window-icons.patch
50 patch -Np0 -i $srcdir/$pkgname-autogen.patch
51 patch -Np0 -i $srcdir/$pkgname-libpng14.patch
52 #patch -Np0 -i $srcdir/$pkgname-build.patch
54 sed -i 's|$swscale_repo|$swscale_repo@$swscale_rev|' Utils/build.sh || return 1
56 sh autogen.sh || return 1
59 ./Utils/build.sh --verbose || return 1
60 mkdir -p $pkgdir/opt/$pkgname
61 #cp src/stepmania src/GtkModule.so $pkgdir/opt/$pkgname
62 cp stepmania GtkModule.so $pkgdir/opt/$pkgname
64 install -D -m755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
65 install -D -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
66 install -D -m644 $srcdir/$pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.xpm
67 install -D -m644 $srcdir/$_svnmod/Docs/Licenses.txt $pkgdir/usr/share/licenses/$pkgname/Licenses.txt
69 cp -r {Announcers,BackgroundEffects,BackgroundTransitions,BGAnimations,CDTitles,Characters,\
70 Courses,Data,Docs,NoteSkins,Packages,RandomMovies,Songs,Themes} $pkgdir/opt/$pkgname
72 find $pkgdir/opt/$pkgname -type d -name ".svn" -exec rm -rf '{}' +;
73 rm -f $pkgdir/opt/$pkgname/Docs/{*.gif,LUA*,Lua*,README-GUIDELINES,\
74 SMLanProtocol.txt,Stats.xml,TODO.*}