# Mainteiner: Ulrich Keller # Contributor: James Thomas # Contributor: Anton Larionov _pkgname=cantata pkgname="${_pkgname}-qt" pkgver=1.0.3 pkgrel=2 pkgdesc="QT4 client for the music player daemon (MPD) (without kdelibs)" arch=('i686' 'x86_64') url="https://code.google.com/p/cantata/" license=('GPL') depends=('qtwebkit' 'taglib-extras' 'ffmpeg' 'ffmpeg-compat' 'mpg123' 'phonon' 'libcddb' 'libmusicbrainz5') optdepends=('libmtp: to support MTP devices' 'oxygen-icons: to fill in otherwise missing icons') makedepends=('cmake' 'automoc4') provides=('cantata') conflicts=('cantata') install=${pkgname}.install source=("http://cantata.googlecode.com/files/${_pkgname}-${pkgver}.tar.bz2") build() { cd "${srcdir}/${_pkgname}-${pkgver}" sed -i.bak -e 's|libavcodec|ffmpeg-compat/libavcodec|g' replaygain/ffmpeginput.cpp sed -i.bak -e 's|libavutil|ffmpeg-compat/libavutil|g' replaygain/ffmpeginput.cpp sed -i.bak -e 's|libavformat|ffmpeg-compat/libavformat|g' replaygain/ffmpeginput.cpp mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_KDE=NO -DQT_QMAKE_EXECUTABLE=qmake-qt4 -DCMAKE_PREFIX_PATH=/usr/lib/qt4 make } package() { cd "${srcdir}/${_pkgname}-${pkgver}/build" make DESTDIR=${pkgdir} install } md5sums=('fd942d25127a7936efaf1fe887d66189')