[arch-commits] Commit in phonon/repos (extra-x86_64 extra-x86_64/PKGBUILD)
Andrea Scarpino
andrea at nymeria.archlinux.org
Wed Nov 6 08:10:18 UTC 2013
Date: Wednesday, November 6, 2013 @ 09:10:18
Author: andrea
Revision: 199007
archrelease: copy trunk to extra-x86_64
Added:
phonon/repos/extra-x86_64/
phonon/repos/extra-x86_64/PKGBUILD
(from rev 199006, phonon/trunk/PKGBUILD)
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
Copied: phonon/repos/extra-x86_64/PKGBUILD (from rev 199006, phonon/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2013-11-06 08:10:18 UTC (rev 199007)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgbase=phonon
+pkgname=('phonon-qt4' 'phonon-qt5')
+pkgver=4.7.0
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://phonon.kde.org/'
+license=('LGPL')
+makedepends=('cmake' 'automoc4' 'libpulse' 'libqzeitgeist' 'qt5-base' 'qt5-tools' 'qt5-quick1')
+options=('!emptydirs')
+source=("http://download.kde.org/stable/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz")
+md5sums=('f5c1a847ac8ae73e67bf762199978278')
+
+prepare() {
+ mkdir build
+ mkdir build-qt5
+}
+
+build() {
+ cd build
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
+ -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+
+ cd ../build-qt5
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
+ -DPHONON_BUILD_PHONON4QT5=ON \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+package_phonon-qt4(){
+ pkgdesc="The multimedia framework for KDE4"
+ depends=('phonon-backend' 'libpulse' 'libqzeitgeist')
+ optdepends=('pulseaudio: PulseAudio support')
+ replaces=('phonon')
+ provides=('phonon')
+ conflicts=('phonon')
+
+ cd build
+ make DESTDIR="${pkgdir}" install
+
+ # Install headers into the Qt4 dir
+ install -d "${pkgdir}"/usr/include/qt4
+ mv "${pkgdir}"/usr/include/{phonon,KDE} "${pkgdir}"/usr/include/qt4/
+
+ sed -i 's#includedir=/usr/include#includedir=/usr/include/qt4#' \
+ "${pkgdir}/usr/lib/pkgconfig/phonon.pc"
+}
+
+package_phonon-qt5(){
+ pkgdesc="The multimedia framework for KF5"
+ depends=('phonon-backend' 'libpulse' 'qt5-base')
+ optdepends=('pulseaudio: PulseAudio support')
+
+ cd build-qt5
+ make DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list