50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Template file for 'qt6-charts'
|
|
pkgname=qt6-charts
|
|
version=6.7.2
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="perl qt6-declarative-host-tools"
|
|
makedepends="qt6-declarative-private-devel qt6-base-private-devel"
|
|
short_desc="Cross-platform application and UI framework - charts"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://qt.io/"
|
|
distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtcharts-everywhere-src-${version}.tar.xz"
|
|
checksum=00f6a437458b7f2c4e81d748dbe2a077567a9e6ad8d8e3820b36c39dc5279bda
|
|
|
|
subpackages="qt6-charts-private-devel qt6-charts-devel"
|
|
|
|
pre_check() {
|
|
export QML2_IMPORT_PATH="$wrksrc/build/lib${XBPS_TARGET_WORDSIZE}/qt6/qml"
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/tests
|
|
}
|
|
|
|
qt6-charts-private-devel_package() {
|
|
depends="qt6-charts-devel"
|
|
short_desc+=" - private development files"
|
|
pkg_install() {
|
|
for dir in $(cd ${DESTDIR} && find usr/include -type d -name private); do
|
|
vmove "$dir"
|
|
done
|
|
vmove "usr/lib/qt6/mkspecs/modules/*_private.pri"
|
|
}
|
|
}
|
|
|
|
qt6-charts-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
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
|
|
}
|
|
}
|