updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ardour3-svn / PKGBUILD
blob8067eec140e243afefda52b3938dd54d645b5656
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
3 # Contributor: Uli Armbruster <uli_armbruster@web.de>
5 _name=ardour3
6 pkgname=ardour3-svn
7 pkgver=10907
8 pkgrel=1
9 pkgdesc="A multichannel hard disk recorder and digital audio workstation"
10 arch=('i686' 'x86_64')
11 url="http://www.ardour.org/"
12 license=('GPL2')
13 depends=('libgnomecanvasmm>=2.12.0' 'liblrdf>=0.4.0' 'liblo' 'aubio'
14          'libsmf' 'lilv<=1.0.0' 'suil<=1.0.0' 'desktop-file-utils')
15 makedepends=('subversion' 'python2' 'boost' 'cppunit>=1.12.0' 'doxygen' 'graphviz')
16 provides=("$_name")
17 conflicts=("$_name")
18 install="$pkgname.install"
19 source=("$pkgname.desktop")
20 md5sums=('2736c648e452ae45c703e48cf64f75e7')
21         
22 _svntrunk="http://subversion.ardour.org/svn/ardour2/branches/3.0"
23 _svnmod="$_name"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to SVN server...."
29   if [[ -d "$_svnmod/.svn" ]]; then
30     (cd "$_svnmod" && svn up -r "$pkgver")
31   else
32     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
33   fi
35   msg "SVN checkout done or server timeout"
36   msg "Starting build..."
38   rm -rf "$srcdir/$_svnmod-build"
39   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
40   cd "$srcdir/$_svnmod-build"
42   #
43   # BUILD HERE
44   #
46   python2 waf configure \
47     --prefix=/usr \
48     --configdir=/etc \
49     --docs \
50     --freedesktop \
51     --lv2 \
52     --noconfirm
54   python2 waf build
57 package() {
58   cd "$srcdir/$_svnmod-build"
60   python2 waf --destdir="$pkgdir/" install
62   # desktop file
63   install -Dm644 "$srcdir/$pkgname.desktop" \
64     "$pkgdir/usr/share/applications/$_name.desktop"