From cf80a514d3f2073a2c54db1b69354815f3be5f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 14 May 2024 14:28:50 +0700 Subject: [PATCH] phonon-backend-vlc: fix qt6 plugins location --- srcpkgs/phonon-backend-vlc/template | 32 ++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/srcpkgs/phonon-backend-vlc/template b/srcpkgs/phonon-backend-vlc/template index 463cb6b119f..b24a9cbd98c 100644 --- a/srcpkgs/phonon-backend-vlc/template +++ b/srcpkgs/phonon-backend-vlc/template @@ -1,9 +1,9 @@ # Template file for 'phonon-backend-vlc' pkgname=phonon-backend-vlc version=0.12.0 -revision=1 +revision=2 build_style=cmake -configure_args="-DPHONON_BUILD_PHONON4QT5=ON" +configure_args="-DPHONON_BUILD_QT6=OFF" hostmakedepends="pkg-config extra-cmake-modules qt5-host-tools qt5-devel qt5-qmake qt6-base qt6-tools" makedepends="qt5-devel qt5-tools-devel phonon-qt5-devel vlc-devel @@ -15,11 +15,37 @@ homepage="https://phonon.kde.org/" distfiles="${KDE_SITE}/phonon/${pkgname}/${version}/${pkgname}-${version}.tar.xz" checksum=338479dc451e4b94b3ca5b578def741dcf82f5c626a2807d36235be2dce7c9a5 lib32disabled=yes +provides="phonon-qt6-backend-0_1" + +post_configure() { + mkdir build-qt6 + configure_args+=" -DPHONON_BUILD_QT5=OFF -DPHONON_BUILD_QT6=ON" + configure_args+=" -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins" + cmake_builddir=build-qt6 + do_configure +} + +do_build() { + ninja -C build ${makejobs} + ninja -C build-qt6 ${makejobs} +} + +do_check() { + ninja -C build test + ninja -C build-qt6 test +} + +do_install() { + DESTDIR="${DESTDIR}" ninja -C build install + DESTDIR="${DESTDIR}" ninja -C build-qt6 install +} phonon-qt5-backend-vlc_package() { provides="phonon-qt5-backend-0_1" - replaces="phonon-qt5-backend>=0" + lib32disabled=yes short_desc="Phonon VLC backend for Qt5" + # For locale files + depends="phonon-backend-vlc" pkg_install() { vmove usr/lib/qt5/plugins }