44 lines
1.5 KiB
Bash
44 lines
1.5 KiB
Bash
# Template file for 'qt6-multimedia'
|
|
pkgname=qt6-multimedia
|
|
version=6.3.1
|
|
revision=1
|
|
wrksrc="qtmultimedia-everywhere-src-${version}"
|
|
build_style=cmake
|
|
configure_args="-DQT_FEATURE_gstreamer=ON"
|
|
hostmakedepends="perl qt6-declarative-devel pkg-config
|
|
qt6-shadertools-devel"
|
|
makedepends="qt6-declarative-devel
|
|
qt6-shadertools-devel libglib-devel gst-plugins-base1-devel"
|
|
short_desc="Cross-platform application and UI framework - multimedia"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="(LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only with Qt-GPL-exception-1.0"
|
|
homepage="https://qt.io/"
|
|
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtmultimedia-everywhere-src-${version}.tar.xz"
|
|
checksum=7e03242aadd634ff2d9fcf08948290f03da3d9a5012369d908da89f82b1d7336
|
|
|
|
do_check() {
|
|
cd build
|
|
local broken="tst_qmediaformat|tst_qaudiodecoderbackend"
|
|
broken+="|tst_qaudiodevice|tst_qaudiosource|tst_qaudiosink"
|
|
broken+="|tst_qmediaplayerbackend|tst_qmediacapturesession"
|
|
broken+="|tst_qcamerabackend|tst_qquickvideooutput"
|
|
broken+="|tst_qquickvideooutput_window"
|
|
ctest -E "($broken)"
|
|
}
|
|
|
|
qt6-multimedia-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/metatypes
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/qt6/mkspecs
|
|
vmove usr/lib/qt6/qml/QtMultimedia/plugins.qmltypes
|
|
vmove usr/lib/qt6/qml/QtMultimedia/qmldir
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.prl"
|
|
}
|
|
}
|