Name gnome-chess
Description Play the classic two-player boardgame of chess
Version 49.2-1
Package Base gnome-chess
Homepage https://wiki.gnome.org/Apps/Chess
Maintainers ['Jan Alexander Steffens (heftig) <heftig@archlinux.org>']
Contributors ['Jan de Groot <jgc@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-chess
Sources ['git+https://gitlab.gnome.org/GNOME/gnome-chess.git#tag=49.2']
Dependencies ['cairo', 'dconf', 'glib2', 'glibc', 'gtk4', 'hicolor-icon-theme', 'libadwaita', 'librsvg', 'pango']
Optional-Dependencies ['gnuchess']
Build-Dependencies ['git', 'gobject-introspection', 'meson', 'vala', 'yelp-tools']
Provides []
Builddate 02-10-2025 01:13:05
Architecture x86_64
Distro-Version
Licenses ['GPL-3.0-or-later']
Hash a8bc3941c689a7d4c5f20720d410858f5d639dbbbdae8f327a10ee996a74d61d
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gnome-chess
pkgver=49.2
pkgrel=1
pkgdesc="Play the classic two-player boardgame of chess"
url="https://wiki.gnome.org/Apps/Chess"
arch=(x86_64)
license=(GPL-3.0-or-later)
depends=(
  cairo
  dconf
  glib2
  glibc
  gtk4
  hicolor-icon-theme
  libadwaita
  librsvg
  pango
)
makedepends=(
  git
  gobject-introspection
  meson
  vala
  yelp-tools
)
optdepends=('gnuchess: Play against computer')
groups=(gnome-extra)
source=("git+https://gitlab.gnome.org/GNOME/gnome-chess.git#tag=${pkgver/[a-z]/.&}")
b2sums=('622ee878bc18669734808ce2f5de1d32128bca8680a1e264eb7b7b64d036779af8081fd173a2e915d0e5f63722e08fb36cbd76394df347b7c3aac6538d9c78fb')
validpgpkeys=(
  EF033B6B1044EEE7F743A1737F71B64279363298 # Michael Catanzaro <mcatanzaro@innerfocus.xyz>
)

prepare() {
  cd $pkgname
}

build() {
  arch-meson $pkgname build
  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: