phonon-backend-vlc: fix qt6 plugins location

This commit is contained in:
Đoàn Trần Công Danh 2024-05-14 14:28:50 +07:00
parent 12c7a759e2
commit cf80a514d3
1 changed files with 29 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# Template file for 'phonon-backend-vlc' # Template file for 'phonon-backend-vlc'
pkgname=phonon-backend-vlc pkgname=phonon-backend-vlc
version=0.12.0 version=0.12.0
revision=1 revision=2
build_style=cmake 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 hostmakedepends="pkg-config extra-cmake-modules qt5-host-tools qt5-devel
qt5-qmake qt6-base qt6-tools" qt5-qmake qt6-base qt6-tools"
makedepends="qt5-devel qt5-tools-devel phonon-qt5-devel vlc-devel 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" distfiles="${KDE_SITE}/phonon/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=338479dc451e4b94b3ca5b578def741dcf82f5c626a2807d36235be2dce7c9a5 checksum=338479dc451e4b94b3ca5b578def741dcf82f5c626a2807d36235be2dce7c9a5
lib32disabled=yes 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() { phonon-qt5-backend-vlc_package() {
provides="phonon-qt5-backend-0_1" provides="phonon-qt5-backend-0_1"
replaces="phonon-qt5-backend>=0" lib32disabled=yes
short_desc="Phonon VLC backend for Qt5" short_desc="Phonon VLC backend for Qt5"
# For locale files
depends="phonon-backend-vlc"
pkg_install() { pkg_install() {
vmove usr/lib/qt5/plugins vmove usr/lib/qt5/plugins
} }