# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=qtspell
pkgver=1.0.2
pkgrel=1
pkgdesc='Spell checking for Qt text widgets'
arch=('x86_64')
url='https://github.com/manisandro/qtspell'
license=('GPL3')
depends=('enchant' 'iso-codes' 'qt6-base')
makedepends=('cmake' 'ninja' 'qt6-tools')
source=("https://github.com/manisandro/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('faa7add9d771350a63e66bb6c9b91b130097c2399f6f85c2a9a0ea8e0ceb79d8')

build() {
  cmake -S $pkgname-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' -DQT_VER=6
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
