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

Antonio Rojas arojas at archlinux.org
Fri Aug 24 09:03:01 UTC 2018


    Date: Friday, August 24, 2018 @ 09:03:01
  Author: arojas
Revision: 332941

Drop Qt4 support

Modified:
  phonon/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++-----------------------------------
 1 file changed, 8 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-24 08:57:36 UTC (rev 332940)
+++ PKGBUILD	2018-08-24 09:03:01 UTC (rev 332941)
@@ -3,13 +3,16 @@
 # Contributor: Andrea Scarpino <andrea at archlinux.org>
 
 pkgbase=phonon
-pkgname=(phonon-qt4 phonon-qt5)
+pkgname=(phonon-qt5)
+pkgdesc="The multimedia framework by KDE"
 pkgver=4.10.1
-pkgrel=1
+pkgrel=2
 arch=(x86_64)
 url='http://phonon.kde.org/'
 license=(LGPL)
-makedepends=(extra-cmake-modules libpulse qt4 qt5-base qt5-tools)
+depends=(libpulse qt5-base phonon-qt5-backend)
+optdepends=('pulseaudio: PulseAudio support' 'qt5-tools: Designer plugin')
+makedepends=(extra-cmake-modules qt5-tools)
 source=("http://download.kde.org/stable/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz"{,.sig})
 sha256sums=('e5a98df31aeffc22493afc8d6adbca5d6f0c27cc2eed73b3be05195321e08db7'
             'SKIP')
@@ -16,8 +19,7 @@
 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter at kde.org>
 
 prepare() {
-  mkdir build
-  mkdir build-qt5
+  mkdir -p build
 }
 
 build() {
@@ -26,41 +28,12 @@
     -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_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=(qt4 libpulse phonon-qt4-backend)
-  optdepends=('pulseaudio: PulseAudio support')
-
+package_phonon-qt5(){
   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=(libpulse qt5-base phonon-qt5-backend)
-  optdepends=('pulseaudio: PulseAudio support')
-
-  cd build-qt5
-  make DESTDIR="$pkgdir" install
-}



More information about the arch-commits mailing list