description='Virtual keyboard framework'
url='http://qt-project.org/'

license="FDL, GPL3, LGPL3, custom"

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

name=qt6-virtualkeyboard
version=6.7.2

makedepends=(qt6-base qt6-declarative qt6-svg hunspell)

_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
}
