updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qutecsound-svn / PKGBUILD
blobcfedb8710aebb2ca24f4d6f3bafe519ce2380537
1 # Contributor: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Bernardo Barros <bernardobarros@NOSPAM.gmail.com>
4 pkgname=qutecsound-svn
5 _pkgname=qutecsound
6 pkgver=846
7 pkgrel=2
8 pkgdesc="A cross platform editor and front-end for Csound with syntax highlighting,"
9 arch=('i686' 'x86_64')
10 url="http://qutecsound.sourceforge.net/"
11 license=('GPL')
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
22 _svnmod=${_pkgname}
24 build() {
25   export OPCODEDIR64=/lib/csound/plugins64
26   export CSSTRNGS=/share/locale
27     
28   cd "$srcdir"
30   if [ -d $_svnmod/.svn ]; then
31     (cd $_svnmod && svn up -r $pkgver)
32   else
33     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34   fi
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}"
42   
44   qmake qcs.pro "CONFIG+=build64 CONFIG+=pythonqt CONFIG+=rtmidi" 
45   make
48 package() {
49   cd "$srcdir/$_svnmod-build/${_pkgname}"
51   # Prepare folders
52   install -d $pkgdir/usr/{bin,share/{applications,{,doc}/${_pkgname}}}
54   # Bin file
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"