# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdg-utils
pkgver=1.2.1
pkgrel=1
pkgdesc="Basic desktop integration functions"
url="https://www.freedesktop.org/wiki/Software/xdg-utils/"
arch="noarch"
options="!check"  # No test suite.
license="MIT"
depends="
	file
	xprop
	xset
	"
makedepends="
	libxml2-utils
	libxslt
	lynx
	xmlto
	"
subpackages="$pkgname-doc"
source="https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/v${pkgver/_/-}/xdg-utils-v${pkgver/_/-}.tar.gz
	busybox-sed.patch
	"
builddir="$srcdir/$pkgname-v${pkgver/_/-}"

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
9b031d9c65247d0bbe0ce11fba10f88e68fa11e8d0fe5d1b09876edd21f59896a4d3be9a23f10afb7436446580b4d38fba99c622767eecec3951be4f5e4aad3e  xdg-utils-v1.2.1.tar.gz
62063dc8667b945d6bd38c3e54d1df38dfd4356ad6968509f3acbb7c4b6130e38b98fd9bb1ac9f2ad13cae7ee5d51131ee9d7a50b5867149e0eb9578208b79b0  busybox-sed.patch
"
