# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=gi-docgen
pkgver=2025.3
pkgrel=0
pkgdesc="A documentation generator for GObject-based libraries"
url="https://gitlab.gnome.org/GNOME/gi-docgen"
arch="noarch"
license="Apache-2.0 OR GPL-3.0-or-later"
depends="
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-packaging
	py3-pygments
	py3-typogrify
	python3
	"
subpackages="$pkgname-pyc"
makedepends="meson"
source="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$pkgver/gi-docgen-$pkgver.tar.gz"

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

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

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

sha512sums="
7ebd904b0a186179f5b50ac4ea1b8669bc3afa9a2258cd9738f433d9acb48dc60af73add4169471a1ebad3dbf7632e22cbef94cac5ed3acf6d858f970ed021d9  gi-docgen-2025.3.tar.gz
"
