updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / mingus-svn / PKGBUILD
blob0a19823f4be0aed954474a99b7515f987b559e2f
1 # Contributor: Stephen Sugden < glurgle |at| gmail |dot| com >
3 pkgname=mingus-svn
4 pkgver=477
5 pkgrel=1
6 pkgdesc="A music theory and notation package for Python"
7 arch=('i686' 'x86_64')
8 url="http://mingus.googlecode.com"
9 license=('GPL')
10 depends=('python')
11 makedepends=('autoconf' 'automake' 'gettext' 'imagemagick' 'intltool' 'subversion') 
12 optdepends=('lilypond: for generating sheet music',
13                                                 'fluidsynth: for realtime MIDI playback support')
14 provides=("${pkgname%-svn}")
15 conflicts=("${pkgname%-svn}")
17 _svntrunk=http://mingus.googlecode.com/svn/trunk/
18 _svnmod=${pkgname%-svn}
19 _revnumber=$pkgver
21 build() {
22   cd $srcdir/
23   msg "Connecting to SVN server...."
24   svn co $_svntrunk --config-dir ./ -r $_revnumber $_svnmod
26   msg "SVN checkout done or the server timed out"
28   # Copy files to build directory
29   rm -rf "$srcdir/$_svnmod-build"
30   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31   cd "$srcdir/$_svnmod-build"
33   python setup.py install --root="$pkgdir"
34   install -d "$pkgdir/usr/share/doc/$_svnmod"
35   mv "$pkgdir/usr/mingus_examples" "$pkgdir/usr/share/doc/$_svnmod/"