description='A cross-platform application and UI framework, QtCharts files'
url='http://qt-project.org/'

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(qt6-base qt6-declarative)

name=qt6-charts
version=6.7.2

_name=${name/6-/}-everywhere-src

source=(https://download.qt.io/official_releases/qt/${version:0:3}/$version/submodules/${_name}-$version.tar.xz)

build() {
 cmake -S ${_name}-$version -B build -G Ninja
 cmake --build build
 DESTDIR=$PKG cmake --install build
}

devel() {
  cd $PKG
  bsdtar -cf \
  $PKGMK_PACKAGE_DIR/$name.devel${PKGMK_BUILDVER}any.cards.tar \
  usr/include \
  usr/lib/qt6/mkspecs \
  usr/lib/cmake/
  
  rm -r usr/include usr/lib/qt6/mkspecs \
  usr/lib/cmake
}
