[arch-commits] Commit in phonon-gstreamer/trunk (3 files)

Andrea Scarpino andrea at nymeria.archlinux.org
Fri May 2 12:02:12 UTC 2014


    Date: Friday, May 2, 2014 @ 14:02:12
  Author: andrea
Revision: 211972

upgpkg: phonon-gstreamer 4.7.1-1

Provide the backend for Qt5

Added:
  phonon-gstreamer/trunk/phonon-qt4-gstreamer.install
    (from rev 211971, phonon-gstreamer/trunk/phonon-gstreamer.install)
Modified:
  phonon-gstreamer/trunk/PKGBUILD
Deleted:
  phonon-gstreamer/trunk/phonon-gstreamer.install

------------------------------+
 PKGBUILD                     |   48 ++++++++++++++++++++++++++++++++---------
 phonon-gstreamer.install     |   11 ---------
 phonon-qt4-gstreamer.install |   11 +++++++++
 3 files changed, 49 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-02 11:48:12 UTC (rev 211971)
+++ PKGBUILD	2014-05-02 12:02:12 UTC (rev 211972)
@@ -1,26 +1,24 @@
 # $Id$
 # Maintainer: Andrea Scarpino <andrea at 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 \
@@ -27,9 +25,39 @@
     -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
+}

Deleted: phonon-gstreamer.install
===================================================================
--- phonon-gstreamer.install	2014-05-02 11:48:12 UTC (rev 211971)
+++ phonon-gstreamer.install	2014-05-02 12:02:12 UTC (rev 211972)
@@ -1,11 +0,0 @@
-post_install(){
-    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
-}
-
-post_upgrade() {
-    post_install
-}
-
-post_remove() {
-    post_install
-}

Copied: phonon-gstreamer/trunk/phonon-qt4-gstreamer.install (from rev 211971, phonon-gstreamer/trunk/phonon-gstreamer.install)
===================================================================
--- phonon-qt4-gstreamer.install	                        (rev 0)
+++ phonon-qt4-gstreamer.install	2014-05-02 12:02:12 UTC (rev 211972)
@@ -0,0 +1,11 @@
+post_install(){
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}




More information about the arch-commits mailing list