[arch-commits] Commit in phonon/kde-unstable (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Thu Jan 7 15:36:16 EST 2010


    Date: Thursday, January 7, 2010 @ 15:36:15
  Author: andrea
Revision: 62365

splitted backends

Modified:
  phonon/kde-unstable/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-07 20:35:00 UTC (rev 62364)
+++ PKGBUILD	2010-01-07 20:36:15 UTC (rev 62365)
@@ -1,32 +1,50 @@
 # $Id: $
 # Maintainer: Andrea Scarpino <andrea at archlinux.org>
 
-pkgname=phonon
+pkgbase=phonon
+pkgname=('phonon' 'phonon-xine' 'phonon-gstreamer')
 pkgver=4.3.80
 pkgrel=1
 pkgdesc="The multimedia API for KDE4"
 arch=('i686' 'x86_64')
 url="http://phonon.kde.org"
 license=('LGPL')
-depends=('qt' 'xine-lib')
-makedepends=('cmake' 'automoc4')
-conflicts=('phonon-xine')
+makedepends=('cmake' 'automoc4' 'qt' 'xine-lib' 'gstreamer0.10-base')
 install=${pkgname}.install
-source=("http://download.kde.org/unstable/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
+source=("http://download.kde.org/unstable/${pkgname}/${pkgbase}-${pkgver}.tar.bz2")
 md5sums=('6b0c5554291615433c14c3c38f741690')
 
 build() {
   cd ${srcdir}
   mkdir build
   cd build
-  cmake ../${pkgname}-${pkgver} \
+  cmake ../${pkgbase}-${pkgver} \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_SKIP_RPATH=ON \
     -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
-    -DWITH_GStreamer=OFF \
-    -DWITH_GStreamerPlugins=OFF \
     -DWITH_PulseAudio=OFF
   make || return 1
-  make DESTDIR=${pkgdir} install
 }
+
+package_phonon(){
+  depends=('qt' 'phonon-backend')
+  cd ${srcdir}/build/phonon
+  make DESTDIR=${pkgdir} install || return 1
+}
+
+package_phonon-gstreamer(){
+  pkgdesc="Phonon Gstreamer backend"
+  depends=('gstreamer0.10-base')
+  provides=('phonon-backend')
+  cd ${srcdir}/build/gstreamer
+  make DESTDIR=${pkgdir} install || return 1
+}
+
+package_phonon-xine(){
+  pkgdesc="Phonon Xine backend"
+  depends=('xine-lib')
+  provides=('phonon-backend')
+  cd ${srcdir}/build/xine
+  make DESTDIR=${pkgdir} install || return 1
+}



More information about the arch-commits mailing list