# Depends on: phonon-qt gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-bad gstreamer1-plugins-ugly libxml2 pulseaudio qt-x11extras

description="phonon-backend-gstreamer plugin audio for KDE"
url="https://www.kde.org/"
packager="pierre at nutyx dot org"

name=phonon-backend-gstreamer-qt
release=2
version=4.9.0
_name=phonon-backend-gstreamer

source=( http://download.kde.org/stable/phonon/${_name}/$version/${_name}-$version.tar.xz)

build() {
cd phonon-gstreamer-$version
mkdir build
cd    build
cmake -DCMAKE_BUILD_TYPE=Release     \
      -DCMAKE_SKIP_RPATH=ON          \
      -DCMAKE_INSTALL_PREFIX=/usr    \
      -DPHONON_BUILD_PHONON4QT5=ON   \
      -DCMAKE_INSTALL_LIBDIR=lib     \
      -Wno-dev ..

make
make DESTDIR=$PKG install
}
