48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'qt6-shadertools'
|
|
pkgname=qt6-shadertools
|
|
version=6.7.2
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="perl qt6-base"
|
|
makedepends="qt6-base-private-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=edfa34c0ac8c00fcaa949df1d8e7a77d89dadd6386e683ce6c3e3b117e2f7cc1
|
|
|
|
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
|
|
}
|
|
}
|