summaryrefslogtreecommitdiff
path: root/extra/phonon-gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'extra/phonon-gstreamer')
-rw-r--r--extra/phonon-gstreamer/PKGBUILD50
-rw-r--r--extra/phonon-gstreamer/phonon-qt4-gstreamer.install (renamed from extra/phonon-gstreamer/phonon-gstreamer.install)0
2 files changed, 39 insertions, 11 deletions
diff --git a/extra/phonon-gstreamer/PKGBUILD b/extra/phonon-gstreamer/PKGBUILD
index a0a904ccc..0722ad188 100644
--- a/extra/phonon-gstreamer/PKGBUILD
+++ b/extra/phonon-gstreamer/PKGBUILD
@@ -1,35 +1,63 @@
-# $Id: PKGBUILD 201235 2013-12-06 13:45:03Z andrea $
+# $Id: PKGBUILD 211973 2014-05-02 12:02:18Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
-pkgname=phonon-gstreamer
+pkgbase=phonon-gstreamer
+pkgname=('phonon-qt4-gstreamer' 'phonon-qt5-gstreamer')
pkgver=4.7.1
pkgrel=1
arch=('i686' 'x86_64')
url='http://phonon.kde.org/'
-pkgdesc="Phonon GStreamer backend"
license=('LGPL')
-depends=('gstreamer0.10-base-plugins')
-makedepends=('cmake' 'automoc4' 'phonon-qt4')
-provides=('phonon-backend')
-install="${pkgname}.install"
+makedepends=('gstreamer0.10-base-plugins' 'cmake' 'automoc4' 'phonon-qt4' 'phonon-qt5')
source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/${pkgver}/phonon-backend-gstreamer-${pkgver}.tar.xz")
md5sums=('7c0cfab4ec0bbe1f201503e6ccc7290a')
prepare() {
- mkdir build
+ mkdir build-qt4
+ mkdir build-qt5
}
build() {
- cd build
+ cd build-qt4
cmake ../phonon-backend-gstreamer-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_LIBDIR=lib
make
+
+ cd ../build-qt5
+ cmake ../phonon-backend-gstreamer-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DPHONON_BUILD_PHONON4QT5=ON
+ make
}
-package() {
- cd build
+package_phonon-qt4-gstreamer() {
+ pkgdesc="Phonon GStreamer backend for Qt4"
+ depends=('gstreamer0.10-base-plugins')
+ provides=('phonon-backend' 'phonon-qt4-backend')
+ replaces=('phonon-gstreamer')
+ conflicts=('phonon-gstreamer')
+ install="phonon-qt4-gstreamer.install"
+
+ cd build-qt4
+ make DESTDIR="${pkgdir}" install
+}
+
+package_phonon-qt5-gstreamer() {
+ pkgdesc="Phonon GStreamer backend for Qt5"
+ depends=('gstreamer0.10-base-plugins')
+ provides=('phonon-qt5-backend')
+ replaces=('phonon-gstreamer')
+ conflicts=('phonon-gstreamer')
+
+ cd build-qt5
make DESTDIR="${pkgdir}" install
+
+ # Those are not needed
+ rm -rf "${pkgdir}"/usr/share
}
diff --git a/extra/phonon-gstreamer/phonon-gstreamer.install b/extra/phonon-gstreamer/phonon-qt4-gstreamer.install
index ceb7592ef..ceb7592ef 100644
--- a/extra/phonon-gstreamer/phonon-gstreamer.install
+++ b/extra/phonon-gstreamer/phonon-qt4-gstreamer.install