# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=pqmarble
pkgver=42.0_alpha_git20230311
_commit=f240b2ec7d5cdacb8fdcc553703420dc5101ffdb
pkgrel=0
pkgdesc="Useful functions and reusable widgets for GTK 4"
url="https://gitlab.gnome.org/raggesilver/marble"
arch="all"
license="GPL-3.0-or-later"
makedepends="meson vala gtk4.0-dev gobject-introspection-dev"
subpackages="$pkgname-dev"
source="https://gitlab.gnome.org/raggesilver/marble/-/archive/$_commit/marble-$_commit.tar.gz"
builddir="$srcdir/marble-$_commit"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
9d44561a6db948633da937cfef1c3d69450e513099c427d72db6b3dce10bd8918aebbfff308990e54a7fb81c9a6faef938757ed1703cae9009e86a19c1f4105f  marble-f240b2ec7d5cdacb8fdcc553703420dc5101ffdb.tar.gz
"
