void-packages/srcpkgs/qt6-wayland/template

44 lines
1.3 KiB
Bash

# Template file for 'qt6-wayland'
pkgname=qt6-wayland
version=6.4.0
revision=1
build_style=cmake
hostmakedepends="qt6-base-devel perl pkg-config wayland-devel
qt6-declarative-devel"
# XXX: Qml as optional dep
makedepends="qt6-base-devel wayland-devel libxkbcommon-devel
qt6-declarative-devel
libXcomposite-devel MesaLib-devel Vulkan-Headers libdrm-devel"
checkdepends="dbus mesa-dri"
short_desc="Cross-platform application and UI framework - Wayland"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-only with Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later"
homepage="https://www.qt.io"
distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtwayland-everywhere-src-${version}.tar.xz"
checksum=f08ba8e14fbec34d57332ad897c5a9150453ed07a611abb18c89c6cc5e5b62fc
if [ "$CROSS_BUILD" ]; then
configure_args="-DQT_FORCE_BUILD_TOOLS=true"
hostmakedepends+=" qt6-wayland-devel"
fi
do_check() {
cd build
dbus-run-session ctest -E 'tst_seatv4'
}
qt6-wayland-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/*.so"
vmove "usr/lib/*.prl"
vmove usr/share/qt6/modules
}
}