# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=blueprint-compiler
pkgver=0.16.0
pkgrel=0
pkgdesc="Markup language for GTK user interfaces"
url="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
	gobject-introspection-dev
	gtk4.0
	libadwaita
	python3
	py3-gobject3
	"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="meson"
checkdepends="cage-run"
subpackages="$pkgname-dev $pkgname-pyc"
source="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v$pkgver/blueprint-compiler-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

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

check() {
	cage-run meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	python3 -m compileall -fq "$pkgdir"/usr/lib/python*
}

sha512sums="
fd0e66504274f459af335335bb6f7f96857ef120754dfd6190bb03b19e95b85239016fc1ea70950748ba29129c1e0faf272ddd7c217dfd5f418df3d0930c5c9a  blueprint-compiler-v0.16.0.tar.gz
"
