# Maintainer: Integral <integral@member.fsf.org>

pkgname=clapgrep
pkgver=26.02
pkgrel=1
pkgdesc="One app to search through all your files"
arch=('x86_64' 'aarch64' 'riscv64')
url="https://github.com/luleyleo/${pkgname}"
license=('GPL-3.0-or-later')
depends=('gtk4' 'libadwaita' 'gtksourceview5' 'poppler-glib')
makedepends=('meson' 'cargo' 'blueprint-compiler')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('1aaa0989ca7db014f4c6a518816903b6528516d5e5dc6ae821af739e08d6b9de')

build() {
  arch-meson "${pkgname}-${pkgver/+/-}/" build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  meson install -C build --no-rebuild --destdir "${pkgdir}"
}
