# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=gnome-sudoku
pkgver=46.4
pkgrel=0
arch="all"
url="https://wiki.gnome.org/Apps/Sudoku"
pkgdesc="Test your logic skills in this number grid puzzle"
license="GPL-3.0-or-later"
makedepends="yelp-tools vala meson libgee-dev libadwaita-dev gtk4.0-dev json-glib-dev qqwing-dev itstool desktop-file-utils"
source="https://download.gnome.org/sources/gnome-sudoku/${pkgver%.*}/gnome-sudoku-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

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

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

sha512sums="
439752b6d963f5ae19ce15914d21159ff051c6fddea1590767f8661d40dc7ad4b4ddee730f3a2f76f6651b12b946043708c648e6d3a367788be8ce7e507b939a  gnome-sudoku-46.4.tar.xz
"
