updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / stepmania-svn / PKGBUILD
blobe6872f487a76016cb12bc0d9f6bf28c9cc405cdf
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>
6 pkgname=stepmania-svn
7 pkgver=28586
8 pkgrel=1
9 pkgdesc="SVN version of StepMania 4.0"
10 url="http://www.stepmania.com/wiki/StepMania_4.0"
11 license=('MIT')
12 arch=(i686 x86_64)
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/
31 _svnmod=stepmania
33 build() {
34     cd $srcdir
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
46     cd $_svnmod
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
57     #./configure
58     #make
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.*}