# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=highscore
pkgver=40.0
pkgrel=3
pkgdesc="Retro gaming application"
url="https://gitlab.gnome.org/World/highscore"
arch="all !s390x" # grilo
license="GPL-3.0-or-later"
makedepends="
	grilo-dev
	gtk+3.0-dev
	libarchive-dev
	libhandy1-dev
	libmanette-dev
	librsvg-dev
	libsoup3-dev
	libxml2-dev
	meson
	retro-gtk-dev
	sqlite-dev
	tracker-dev
	vala
	"
subpackages="$pkgname-lang"
#source="https://gitlab.gnome.org/World/highscore/-/archive/$pkgver/highscore-$pkgver.tar.gz
source="https://distfiles.alpinelinux.org/distfiles/edge/highscore-$pkgver.tar.gz
	0001-merge-file.patch
	0002-use-tracker-3.0.patch
	libsoup3.patch
	"
options="!check"

provides="gnome-games=$pkgver-r$pkgrel"
replaces="gnome-games"

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

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

sha512sums="
39e1abfe4dae8a349449d8a42070a5f1eb9e7556c5857477ef24213710aff09faebffd0e77ce1aaf22f65ea3e7d057c6f8b590810dcab97324f8772dd22a31fa  highscore-40.0.tar.gz
e303490fc6b972e42b2c7f32e48f70560762923561ce278479c97e9106e9356c8042b84f5282ca24d411d1cb2f883ca035c8e979a2640645dc0dd31042e3b4cc  0001-merge-file.patch
4568cfc6b34ff6e28102f2da2bf6edc93448076c2246e65ad9137288299917afc69d6ee9a0470b15d5226974f1e9088ef9c23a363fdc5a3da6ed61c506e8760b  0002-use-tracker-3.0.patch
d02a285893435d741569df8a4f9ecc5416212e239393784d3b69ec50ad8f7f13448a8478be7ac8cad17cd8692f796001b05d60eaa384d24ca40cbbaa662bbea9  libsoup3.patch
"
