# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: team/gnome <alacerda@alpinelinux.org>
pkgname=yelp-xsl
pkgver=42.1
pkgrel=1
pkgdesc="XSL stylesheets for the yelp help browser"
url="https://wiki.gnome.org/Apps/Yelp"
arch="noarch"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT"
makedepends="intltool libxslt itstool"
options="!check" # no tests
source="https://download.gnome.org/sources/yelp-xsl/${pkgver%.*}/yelp-xsl-$pkgver.tar.xz"

prepare() {
	default_prepare
	update_config_sub

	sed 's|/usr/bin/sh|/bin/sh|' -i install-sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
}

sha512sums="
90c7cc244dba038d6fcc1344adf950640a0affb8e5a1a6945a776d3308bf9b5071320856968f7a31688855a18a872f63553bd643b7776801cc68b182b455fc10  yelp-xsl-42.1.tar.xz
"
