updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / audacity-svn / PKGBUILD
blob4786d002091cd0c7bfe778c0ce225cf494fcb217
1 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: nightfrost <khashayar_naderehvandi@yahoo.co.uk>
3 # Contributor: Patrick McCarty <pnorcks at gmail dot com>
5 pkgname=audacity-svn
6 pkgver=11276
7 pkgrel=1
8 pkgdesc="A program that lets you manipulate digital audio waveforms -- development snapshot"
9 arch=('i686' 'x86_64')
10 url="http://audacity.sourceforge.net/"
11 license=('GPL')
12 depends=('libvorbis' 'libmad' 'libid3tag' 'wxgtk' 'libsamplerate' 'lame' 'shared-mime-info' 'desktop-file-utils' 'redland' 'jack')
13 makedepends=('svn' 'python2' 'pkgconfig' 'zip' 'soundtouch')
14 options=('!makeflags')
15 conflicts=('audacity')
16 provides=('audacity')
18 _svntrunk=http://audacity.googlecode.com/svn/audacity-src/trunk
19 _svnmod=audacity
21 build() {
22   cd "$srcdir"
24   # SVN stuff
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
31   msg "SVN checkout done or server timeout"
32   msg "Starting make..."
33   
34   rm -rf "$srcdir/$_svnmod-build"
35   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
36   cd "$srcdir/$_svnmod-build"
37     
38   WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
39   --with-portmixer=no --with-libsamplerate=system --without-libresample \
40   --with-libmad=system --with-id3tag=system --with-flac=system \
41   --with-vorbis=system --with-libexpat=system --with-libsndfile=system \
42   --with-soundtouch --enable-unicode --without-taglib --without-ffmpeg
43   
44   make
47 package() {
48   cd "$srcdir/$_svnmod-build"
49   make DESTDIR="$pkgdir/" install