1 # Contributor: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Bernardo Barros <bernardobarros@NOSPAM.gmail.com>
8 pkgdesc="A cross platform editor and front-end for Csound with syntax highlighting,"
10 url="http://qutecsound.sourceforge.net/"
12 depends=('csound' 'qt' 'python2-qt' 'portmidi')
13 makedepends=('subversion')
14 optdepends=('csound-doc: built-in help')
15 conflicts=('qutecsound')
16 provides=('qutecsound')
17 install="${_pkgname}.install"
18 source=("${_pkgname}.desktop")
19 md5sums=('061af6b0b3ac06b2f27f44871ec7f58b')
21 _svntrunk=https://qutecsound.svn.sourceforge.net/svnroot/${_pkgname}/trunk
25 export OPCODEDIR64=/lib/csound/plugins64
26 export CSSTRNGS=/share/locale
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver)
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_svnmod-build"
40 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
41 cd "$srcdir/$_svnmod-build/${_pkgname}"
44 qmake qcs.pro "CONFIG+=build64 CONFIG+=pythonqt CONFIG+=rtmidi"
49 cd "$srcdir/$_svnmod-build/${_pkgname}"
52 install -d $pkgdir/usr/{bin,share/{applications,{,doc}/${_pkgname}}}
55 install -Dm755 bin/qutecsound-d "$pkgdir/usr/bin/${_pkgname}"
57 # Examples docs and data
58 cp -a examples $pkgdir/usr/share/${_pkgname}
59 cp -a images $pkgdir/usr/share/${_pkgname}
60 cp doc/* $pkgdir/usr/share/doc/${_pkgname}
62 # Desktop file and pixmaps
63 install -Dm644 $srcdir/${_pkgname}.desktop "$pkgdir/usr/share/applications"
64 install -Dm644 images/qtcs.png "$pkgdir/usr/share/pixmaps/${_pkgname}.png"