# Template file for 'qt6-quicktimeline'
pkgname=qt6-quicktimeline
version=6.8.2
revision=1
build_style=cmake
hostmakedepends="perl qt6-base qt6-declarative-host-tools"
makedepends="qt6-base-private-devel qt6-declarative-private-devel"
short_desc="Cross-platform application and UI framework - quicktimeline"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://qt.io/"
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version/rc/-rc}/submodules/qtquicktimeline-everywhere-src-${version/rc/-rc}.tar.xz"
checksum=c33dbceed9fabb3d7f6731a68aee602bad5a04bb6f0a473792e61858c0bc1aaa

if [ "$XBPS_CHECK_PKGS" ]; then
	configure_args="-DQT_BUILD_TESTS=ON"
fi

pre_check() {
	export QML2_IMPORT_PATH="$wrksrc/build/lib${XBPS_TARGET_WORDSIZE}/qt6/qml"
}

post_install() {
	rm -rf ${DESTDIR}/usr/tests
}

do_check() {
	: # ignores QML2_IMPORT_PATH somewhere, misses test data in cwd
}
