updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ardour2-svn / PKGBUILD
blob477f4cb1fbd0af12447be4d624b744fd4f6e51bb
1 # $Id$
2 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
3 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
5 pkgname=ardour2-svn
6 _realname=ardour2
7 pkgver=9452
8 pkgrel=1
9 pkgdesc="Professional-grade Digital Audio Workstation"
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 url="http://ardour.org/"
13 provides=('ardour' 'ardour2')
14 conflicts=('ardour' 'ardour2')
15 depends=('liblrdf>=0.4.0' 'liblrdf<0.4.1'
16          'libgnomecanvasmm' 'liblo' 'libusb' 'aubio' 'flac'
17          'slv2' 'rubberband')
18 optdepends=('cwiid: Wiimote support')
19 makedepends=('subversion' 'ladspa' 'scons' 'boost' 'cwiid')
20 install=ardour2.install
21 source=(ardour2.desktop)
22 md5sums=('9d26a2d0c776c56824ae084a2bbbb0b5')
23 conflicts=('ardour2')
25 _svntrunk=http://subversion.ardour.org/svn/ardour2/branches/2.0-ongoing
26 _svnmod=${_realname}
28 build() {
30   cd ${srcdir}
32   rm -rf "${_svnmod}-build"
34   if [ -d $_svnmod ] ; then
35     (cd $_svnmod && svn update)
36     msg "The local files are updated."
37   else
38     svn co ${_svntrunk} ${_svnmod}
39   fi
41   msg "Download complete or server timeout"
42   msg "Starting build process..."
44   cp -rf ${_svnmod} ${_svnmod}-build
45   cd ${_svnmod}-build
47   sed -i '/-O3/d' SConstruct
49   scons $MAKEFLAGS \
50                 ARCH="$CFLAGS" \
51                 PREFIX="/usr" \
52                 DIST_LIBDIR="lib" \
53                 SYSLIBS=1 \
54                 FPU_OPTIMIZATION=1 \
55                 FFT_ANALYSIS=1 \
56                 FREESOUND=1 \
57                 WIIMOTE=1 \
58                 LIBLO=1 \
59                 LV2=1 \
60                 PROGRAM_NAME="Ardour2" \
61                 AUBIO=1 \
62                 NLS=1 \
63                 SURFACES=1 \
64                 DESTDIR="$pkgdir"
66   scons PREFIX="/usr" DESTDIR="$pkgdir" install
68   # freedesktop.org compatibility
69   install -Dm644 ${srcdir}/ardour2.desktop $pkgdir/usr/share/applications/$pkgname.desktop