Advertisement
Guest User

phonon-qt4 PKGBUILD

a guest
Jan 8th, 2019
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. # Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
  2. pkgname=phonon-qt4
  3. pkgver=4.10.1
  4. pkgrel=4
  5. pkgdesc="The multimedia framework for KDE4"
  6. arch=('x86_64' 'i686')
  7. optdepends=('pulseaudio: PulseAudio support')
  8. makedepends=('extra-cmake-modules' 'libpulse' 'qt4')
  9. url='http://phonon.kde.org/'
  10. install="phonon-qt4.install"
  11. license=(LGPL)
  12. source=("https://download.kde.org/stable/${pkgname%-qt4}/$pkgver/${pkgname%-qt4}-$pkgver.tar.xz"{,.sig})
  13. sha256sums=('e5a98df31aeffc22493afc8d6adbca5d6f0c27cc2eed73b3be05195321e08db7'
  14. 'SKIP')
  15. validpgpkeys=('CB9387521E1EE0127DA804843FDBB55084CC5D84') # Harald Sitter <sitter@kde.org>
  16.  
  17. build() {
  18. mkdir -p build && cd build
  19. cmake ../${pkgname%-qt4}-$pkgver \
  20. -DCMAKE_SKIP_RPATH=ON \
  21. -DCMAKE_INSTALL_PREFIX=/usr \
  22. -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
  23. -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
  24. -DCMAKE_INSTALL_LIBDIR=lib
  25. make
  26. }
  27.  
  28. package() {
  29. depends=(qt4 libpulse)
  30. optdepends+=('phonon-qt4-backend: !!! REQUIRED FOR PHONO TO WORK AT ALL !!!')
  31.  
  32. cd build
  33. make DESTDIR="$pkgdir" install
  34.  
  35. # Install headers into the Qt4 dir
  36. install -d "$pkgdir"/usr/include/qt4
  37. mv "$pkgdir"/usr/include/{phonon,KDE} "$pkgdir"/usr/include/qt4/
  38.  
  39. sed -i 's#includedir=/usr/include#includedir=/usr/include/qt4#' \
  40. "$pkgdir/usr/lib/pkgconfig/phonon.pc"
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement