description='Qt module for keyframe-based timeline construction'
url='https://www.qt.io/'

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

name=qt6-quicktimeline
version=6.7.2

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

makedepends=(cmake ninja qt6-base qt6-declarative)

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
}
