# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=qt6-qtvirtualkeyboard pkgver=6.5.2 pkgrel=0 pkgdesc="Virtual keyboard framework" url="https://qt.io/" arch="all" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" depends_dev=" hunspell-dev qt6-qtbase-dev qt6-qtdeclarative-dev qt6-qtsvg-dev " makedepends="$depends_dev cmake perl samurai " subpackages="$pkgname-dev" options="!check" # No tests builddir="$srcdir/qtvirtualkeyboard-everywhere-src-${pkgver/_/-}" case $pkgver in *_alpha*|*_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtvirtualkeyboard-everywhere-src-${pkgver/_/-}.tar.xz" build() { export CFLAGS="$CFLAGS -g1 -flto=auto" export CXXFLAGS="$CXXFLAGS -g1 -flto=auto" cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" acb1f5de2f0d7f985f14d8f77a37698b7ecc7db15a9911148a5f3dafa26db68f2712f9d0f2c9babec9c20b672e350e0431faed2959d2b6eb43113304ab049470 qtvirtualkeyboard-everywhere-src-6.5.2.tar.xz "