# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-taquin
pkgver=3.38.1
pkgrel=3
arch="all"
url="https://wiki.gnome.org/Apps/Taquin"
pkgdesc="Move tiles so that they reach their places"
license="GPL-3.0-or-later AND CC-BY-SA-3.0"
makedepends="meson ninja itstool vala gtk+3.0-dev librsvg-dev gsound-dev"
checkdepends="appstream-glib desktop-file-utils"
source="https://download.gnome.org/sources/gnome-taquin/${pkgver%.*}/gnome-taquin-$pkgver.tar.xz
	99dea5e7863e112f33f16e59898c56a4f1a547b3.patch"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="c92244049bb24ab1585375ca6337965891bcaf46e642e009e3f670a818554d842c1f55c78735229198dfd6d96e95ee56e106a7eb238052e1382118287d9e28d6  gnome-taquin-3.38.1.tar.xz
11bd1424ad4f1102136c8a966befd66b0cb62d0b2f87e727c12910d0cc26ba391c049383e5b535fed27cdf09cafc89ce1a05b6f41e7f61d3969c3e2aaf17a3b2  99dea5e7863e112f33f16e59898c56a4f1a547b3.patch"
