Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD cantata-qt

By: a guest on Aug 1st, 2013  |  syntax: Bash  |  size: 1.39 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Mainteiner: Ulrich Keller <uhkeller at gmail dot com>
  2. # Contributor: James Thomas <dairy_water at yahoo dot co dot uk>
  3. # Contributor: Anton Larionov <diffident dot cat at gmail dot com>
  4.  
  5.  
  6. _pkgname=cantata
  7. pkgname="${_pkgname}-qt"
  8. pkgver=1.0.3
  9. pkgrel=2
  10. pkgdesc="QT4 client for the music player daemon (MPD) (without kdelibs)"
  11. arch=('i686' 'x86_64')
  12. url="https://code.google.com/p/cantata/"
  13. license=('GPL')
  14. depends=('qtwebkit' 'taglib-extras' 'ffmpeg' 'ffmpeg-compat' 'mpg123' 'phonon' 'libcddb' 'libmusicbrainz5')
  15. optdepends=('libmtp: to support MTP devices'
  16. 'oxygen-icons: to fill in otherwise missing icons')
  17. makedepends=('cmake' 'automoc4')
  18. provides=('cantata')
  19. conflicts=('cantata')
  20. install=${pkgname}.install
  21. source=("http://cantata.googlecode.com/files/${_pkgname}-${pkgver}.tar.bz2")
  22.  
  23. build() {
  24.   cd "${srcdir}/${_pkgname}-${pkgver}"
  25.   sed -i.bak -e 's|libavcodec|ffmpeg-compat/libavcodec|g' replaygain/ffmpeginput.cpp
  26.   sed -i.bak -e 's|libavutil|ffmpeg-compat/libavutil|g' replaygain/ffmpeginput.cpp
  27.   sed -i.bak -e 's|libavformat|ffmpeg-compat/libavformat|g' replaygain/ffmpeginput.cpp
  28.   mkdir build
  29.   cd build
  30.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_KDE=NO -DQT_QMAKE_EXECUTABLE=qmake-qt4 -DCMAKE_PREFIX_PATH=/usr/lib/qt4
  31.   make
  32. }
  33.  
  34. package() {
  35.   cd "${srcdir}/${_pkgname}-${pkgver}/build"
  36.   make DESTDIR=${pkgdir} install
  37. }
  38.  
  39. md5sums=('fd942d25127a7936efaf1fe887d66189')
clone this paste RAW Paste Data