updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / rosegarden-svn / PKGBUILD
blob6e85ece0e430376fb8a518803fd9623b12573455
1 # Contributor: Asa Marco <marcoasa90 [at] gmail [dot] com>
2 pkgname=rosegarden-svn
3 pkgver=11305
4 pkgrel=1
5 pkgdesc="Audio and MIDI sequencer, score editor - development branch, doesn't conflict with the old version"
6 arch=('i686' 'x86_64')
7 url="http://www.rosegardenmusic.com/"
8 license=('GPL')
9 depends=('qt' 'jack-audio-connection-kit' 'ladspa' 'dssi' 'liblo' 'liblrdf' 'fftw' 'perl-xml-twig')
10 makedepends=('subversion' 'autoconf' 'imake')
11 source=()
12 md5sums=()
14 _svntrunk=https://rosegarden.svn.sourceforge.net/svnroot/rosegarden/trunk/
15 _svnmod=rosegarden
16 _name=rosegarden-qt4
18 build()
19 {  
20   cd ${startdir}/pkg
21   mkdir usr/
22   mkdir usr/bin
23   mkdir usr/share
24   mkdir usr/share/applications
25   mkdir usr/share/pixmaps
26   mkdir usr/share/$_name
27   mkdir usr/share/$_name/fonts
28   mkdir usr/share/$_name/chords
29   mkdir usr/share/$_name/examples
30   mkdir usr/share/$_name/library
31   mkdir usr/share/$_name/presets
32   mkdir usr/share/$_name/styles
33   
34   cd ${startdir}/src
35   msg "Connecting to $_svnmod SVN server...."
37   if [ -d $_svnmod/.svn ]; then
38     (cd $_svnmod && svn up -r $pkgver)
39   else
40     svn co $_svntrunk $_svnmod -r $pkgver
41   fi
43   msg "SVN checkout done or server timeout"
44   msg "Starting make..."
46   cd ${startdir}/src/rosegarden/$_svnmod
47   sh bootstrap.sh
48   ./configure --with-qtdir=/usr || return 1
49   make || return 1
50   sed -i 's/Exec=rosegarden/Exec=rosegarden-qt4/g' data/desktop/rosegarden.desktop
51   sed -i 's/Name=Rosegarden/Name=Rosegarden-qt4/g' data/desktop/rosegarden.desktop
52   sed -i 's/Icon=rosegarden/Icon=rosegarden-qt4/g' data/desktop/rosegarden.desktop
53   
54  install -Dm755 rosegarden $startdir/pkg/usr/bin/$_name
55  install -Dm755 data/desktop/rosegarden.desktop $startdir/pkg/usr/share/applications/$_name.desktop
56  install -Dm755 data/pixmaps/icons/rg-rwb-rose3-48x48.png /$startdir/pkg/usr/share/pixmaps/$_name.png
57  install -Dm755 data/presets/presets.xml $startdir/pkg/usr/share/$_name/presets/presets.xml
58  cp -r data/fonts/* /$startdir/pkg/usr/share/$_name/fonts
59  cp -r data/chords/* /$startdir/pkg/usr/share/$_name/chords
60  cp -r data/examples/* /$startdir/pkg/usr/share/$_name/examples
61  cp -r data/library/* /$startdir/pkg/usr/share/$_name/library
62  cp -r data/styles/* /$startdir/pkg/usr/share/$_name/styles