updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / sm-ssc-hg / PKGBUILD
blobf83727cfc1f27d25bd1dbf329fa889cb63f29b62
1 # Maintainer: Ryan Peters <sloshy45 at sbcglobal dot net>
2 # Original Maintainer: Artefact2 <artefact2@gmail.com>
3 # Contributor: Lauri Niskanen <ape@ape3000.com>
4 # Contributor: Travis Nickles <ryoohki7@yahoo.com>
5 # Contributor: Stefan Lohmaier <noneuss at gmail dot com>
7 # NOTE: This package is forked from the original sm-ssc PKGBUILD
8 # and all credit goes to Artefact2, the maintainer of sm-ssc's PKGBUILD.
10 pkgname=sm-ssc-hg
11 pkgver=20110510
12 pkgrel=2
13 pkgdesc="Latest sm-ssc build, a Stepmania fork to become Stepmania 5."
14 url="http://code.google.com/p/sm-ssc/"
15 license="MIT"
16 arch=(i686 x86_64)
17 depends=('gtk2' 'libmad' 'libtheora' 'mesa' 'ffmpeg')
18 provides=('stepmania')
19 makedepends=('pkgconfig' 'mercurial')
20 install='sm-ssc.install'
21 source=(sm-ssc.sh sm-ssc.install archlinux.patch)
22 sha512sums=('1f947a417b081cefd6e1dfdb4b236d9355c9b0a697697b292213021c01e2759f6e4405f3c2c7e2f7354576a305604adf7d5daa95ceca8f135d0de97fcb237d2c'            '67d11a649801b654108f4bb20a9d395e8e63f1a1484b4a6ada06bf0607a85339bea91cf0b2f32da7903129b0f2346824ff6038bd33523d990d8e2a7f459075ff'            'dd77bf1f35946ca97740473f5a0b074030076bb02aca945570b3aee4bffcef9fedcc41f8a6ac409f4ac8c6a45de80236616f099bac6127c18aabf4a54c3b7bd6')
24 _mercurial_repo=https://sm-ssc.googlecode.com/hg/
25 _dir=sm-ssc
26 _realver="v$pkgver"
28 build() {
29     cd $srcdir
31     msg "Connecting to sm-ssc mercurial server...."
32     hg clone $_mercurial_repo $_dir
33         cd $_dir
34     msg "Repository cloning done or server timeout"
35     msg "Starting make..."
37         patch -p1 < $srcdir/archlinux.patch
39     sh ./autogen.sh || return 1
40         sh ./Utils/build.sh -f || return 1
41         sh ./Utils/build.sh -c || return 1
42         sed -i -e 's/ -lrt/ -lbz2 -lrt/g' _build/src/Makefile _build/Makefile
43     sh ./Utils/build.sh --verbose --verbose || return 1
44     mkdir -p $pkgdir/opt/$pkgname Songs RandomMovies Packages
45     cp stepmania GtkModule.so $pkgdir/opt/$pkgname
47     install -D -m755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
48         install -D -m644 $srcdir/$_dir/Docs/Licenses.txt $pkgdir/usr/share/licenses/$pkgname/Licenses.txt
50         folders=`echo {Announcers,BackgroundEffects,BackgroundTransitions,BGAnimations,CDTitles,Characters,Courses,Data,Docs,NoteSkins,Packages,RandomMovies,Songs,Themes}`
52     cp -r $folders $pkgdir/opt/$pkgname
53         chown -R root:games $pkgdir/opt/$pkgname
54         cd $pkgdir/opt/$pkgname
55         chmod 2775 . $folders