void-packages/srcpkgs/qt6-shadertools/template

48 lines
1.3 KiB
Bash

# Template file for 'qt6-shadertools'
pkgname=qt6-shadertools
version=6.4.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=fa65bff84d4e9c2cb4cbf6fb098207e0e23d863dbe675eb277034a29c226a217
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/metatypes
vmove usr/lib/pkgconfig
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/share/qt6/modules
for _f in ${DESTDIR}/usr/lib/cmake/*; do
case "$_f" in
*ToolsTools) ;;
*) vmove "usr/lib/cmake/${_f##*/}" ;;
esac
done
}
}