# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=yelp-tools
pkgver=40.0
pkgrel=0
pkgdesc="Gnome documentation tools"
url="http://projects.gnome.org/yelp/"
arch="noarch"
license="GPL-2.0+"
depends=""
makedepends="itstool meson ninja py3-lxml yelp-xsl"
subpackages="$pkgname-dev"
source="https://download-fallback.gnome.org/sources/yelp-tools/40/yelp-tools-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

check() {
# Add test instructions here.
:
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="b89e514cdc2c6ff96097af0cab5694e9f1dfd2a125e08f99a69c0e7dd51e1e1a859c2e6eec656ecea6103bfc65733e1256a77ef992454db4a554567b46fa2628  yelp-tools-40.0.tar.xz"