makedepends=(gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache gtk3 guile libcanberra librsvg yelp-tools git itstool)
run=(gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache guile)

description="A gnome card patience game" 
url="https://www.gnome.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=aisleriot
version=3.22.35
release=2

source=()

prepare() {

  git clone https://gitlab.gnome.org/GNOME/aisleriot.git $name-$version

  cd $name-$version
  git checkout $version

  sed -e 's@#!/usr/bin/bash@#!/bin/sh@' -i cards/meson_svgz.sh
}

build() {

  mkdir build && cd build

  meson setup --prefix=/usr \
        --libdir=/usr/lib \
        -Dtheme_kde=false \
        ../$name-$version

  ninja
  DESTDIR=$PKG ninja install
}
