#Mantainer : M0Rf30
pkgname=mixxx-bzr
pkgver=2950
pkgrel=1
pkgdesc="Digital DJ mixing software"
arch=('i686' 'x86_64')
url="http://www.mixxx.org/"
license=('GPL2')
depends=('libid3tag' 'libmad' 'portaudio' 'qt>=4.7.0' 'libogg' 'libvorbis' 'libsndfile' 'taglib' 'portmidi')
makedepends=('bzr' 'scons>=0.98' 'pkgconfig>=0.15.0')
optdepends=('faad2: M4A support'
'mp4v2: M4A support'
'libshout: Shoutcast support')
provides=(mixxx)
conflicts=(mixxx1.10-bzr mixxx1.8-bzr mixxx1.9-bzr mixxx)
_bzrbranch=lp:mixxx
_bzrname=mixxx
source=("http://sites.google.com/site/secondhelper75/mixxx_gcc47.patch")
md5sums=('6cc48980d1e2abbc31c455cd081cc25f')
build() {
cd ${srcdir}
msg "Connecting to BZR server..."
if [ -d ${srcdir}/${_bzrname} ] ; then
cd ${_bzrname} && bzr pull ${_bzrbranch}
msg "Local repository updated."
else
bzr co ${_bzrbranch}
fi
cd ${startdir}
msg "BZR checkout done or server timeout"
msg "Starting make..."
cd "$srcdir/$_bzrname/$_bzrname"
### GCC 4.7 compatibility
patch -Np1 -i ${srcdir}/mixxx_gcc47.patch
### fix DSO error
LDFLAGS=-lrt
scons qtdir=/usr/lib/qt prefix=/usr install_root=$pkgdir/usr tuned=1 || return 1
scons qtdir=/usr/lib/qt prefix=/usr install_root=$pkgdir/usr install || return 1
}