void-packages/srcpkgs/qt6-shadertools/template

48 lines
1.3 KiB
Bash

# Template file for 'qt6-shadertools'
pkgname=qt6-shadertools
version=6.5.2
revision=1
build_style=cmake
hostmakedepends="perl qt6-base"
makedepends="qt6-base-devel"
depends="libqt6shadertools>=${version}_${revision}"
short_desc="Cross-platform application and UI framework - shadertools"
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}/submodules/qtshadertools-everywhere-src-${version}.tar.xz"
checksum=ca3fb0db8576c59b9c38bb4b271cc6e10aebeb54e2121f429f4ee80671fc0a3d
if [ "$CROSS_BUILD" ]; then
configure_args="-DQT_FORCE_BUILD_TOOLS=true"
hostmakedepends+=" qt6-shadertools"
fi
libqt6shadertools_package() {
short_desc+=" - libraries"
pkg_install() {
vmove "usr/lib/libQt6ShaderTools.so.*"
}
}
qt6-shadertools-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1"
short_desc+=" - development files"
pkg_install() {
local _f
vmove usr/include
vmove usr/lib/qt6/metatypes
vmove usr/lib/pkgconfig
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/lib/qt6/modules
for _f in ${DESTDIR}/usr/lib/cmake/*; do
case "$_f" in
*ToolsTools) ;;
*) vmove "usr/lib/cmake/${_f##*/}" ;;
esac
done
}
}