void-packages/srcpkgs/phonon-backend-vlc/template

53 lines
1.3 KiB
Bash

# Template file for 'phonon-backend-vlc'
pkgname=phonon-backend-vlc
version=0.12.0
revision=2
build_style=cmake
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
phonon-devel"
short_desc="Phonon VLC backend for Qt6"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="LGPL-2.1-only"
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"
lib32disabled=yes
short_desc="Phonon VLC backend for Qt5"
# For locale files
depends="phonon-backend-vlc"
pkg_install() {
vmove usr/lib/qt5/plugins
}
}