# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=aisleriot
pkgver=3.22.35
pkgrel=0
pkgdesc="Solitaire and other card games for GNOME"
url="https://gitlab.gnome.org/GNOME/aisleriot"
arch="all"
license="GPL-3.0-or-later"
options="!check !strip" # no tests, guile libraries cannot be stripped
depends="guile"
depends_doc="yelp"
makedepends="
	bash
	gmp-dev
	gtk+3.0-dev
	guile-dev
	itstool
	libcanberra-dev
	librsvg-dev
	libxml2-dev
	meson
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/aisleriot/-/archive/$pkgver/aisleriot-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dtheme_kde=false \
		. output
	meson compile -C output
}

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

sha512sums="
d2017f46cba4b492f978cb2bd468cf4cfbf2894d8d2d780c607055963c4ea7172a49d7518cd95ed4415499c9400e0640e6b3b893280070ee20528ddaa75cb17b  aisleriot-3.22.35.tar.gz
"
