# Maintainer : bartus # shellcheck disable=SC2034 # Notice: 4.9.0 is the last version supporting qt4 pkgname=phonon-qt4-gstreamer pkgver=4.9.0 pkgrel=1 arch=(x86_64) pkgdesc="Phonon GStreamer backend for Qt4" depends=(gst-plugins-base phonon-qt4) provides=(phonon-qt4-backend) url='https://phonon.kde.org/' license=(LGPL) optdepends=('pulseaudio: PulseAudio support' 'gst-plugins-good: PulseAudio support and good codecs' 'gst-plugins-bad: additional codecs' 'gst-plugins-ugly: additional codecs' 'gst-libav: libav codec') makedepends=(gst-plugins-base extra-cmake-modules phonon-qt4) source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/$pkgver/phonon-backend-gstreamer-$pkgver.tar.xz") sha256sums=('cec3e5ece1261d344b68363ef0606ebf49772628ba94bb55b0c0d18773b885f1') prepare() { mkdir build-qt4 } build() { cd build-qt4 cmake ../${pkgname/-qt4/}-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -D__KDE_HAVE_GCC_VISIBILITY=NO \ -DCMAKE_INSTALL_LIBDIR=lib make } package() { cd build-qt4 make DESTDIR="$pkgdir" install # Conflict with -qt5 rm -r "$pkgdir"/usr/share/icons }