# Maintainer: Jan Alexander Steffens (heftig) pkgname=aisleriot pkgver=3.22.28 pkgrel=1 pkgdesc="A collection of patience games written in guile scheme" url="https://wiki.gnome.org/Apps/Aisleriot" arch=(x86_64) license=(GPL) depends=( dconf gtk3 guile libcanberra librsvg ) makedepends=( appstream-glib git meson yelp-tools ) optdepends=( 'pysolfc-cardsets: PySol card sets' 'pysolfc: PySol card sets' ) options=( debug # https://gitlab.gnome.org/GNOME/aisleriot/-/commit/ca27295085473111564b6674059351a0b6f170c1 !lto ) _commit=e47d8f4e0957e09384c8f1f17a06a660dd94e42f # tags/3.22.28^0 source=("git+https://gitlab.gnome.org/GNOME/aisleriot.git#commit=$_commit") b2sums=('SKIP') pkgver() { cd $pkgname git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' } prepare() { cd $pkgname } build() { local meson_options=( # https://gitlab.gnome.org/GNOME/aisleriot/-/commit/ca27295085473111564b6674059351a0b6f170c1 -D b_lto=false -D theme_kde=false -D theme_pysol=true -D theme_pysol_path=/usr/share/PySolFC ) arch-meson $pkgname build "${meson_options[@]}" meson compile -C build } check() { meson test -C build --print-errorlogs } package() { meson install -C build --destdir "$pkgdir" } # vim:set sw=2 sts=-1 et: