# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=xdg-user-dirs
pkgver=0.18
pkgrel=0
arch="all"
url="https://www.freedesktop.org/wiki/Software/xdg-user-dirs"
pkgdesc="Manage user directories like ~/Desktop and ~/Music"
license="MIT AND GPL-2.0-only"
makedepends="
	docbook-xsl
	gettext-dev
	"
subpackages="$pkgname-lang $pkgname-doc"
source="https://user-dirs.freedesktop.org/releases/xdg-user-dirs-$pkgver.tar.gz
	man-use-local-docbook-xsl.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-documentation
	make
}

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

sha512sums="
f523b2ba4f840a3c2a5730f72182fb5bb798187db769bfb7d36e9f780442813278a2c1bad656b4fb38428131241a51d07200a62b4d7b935d49a74be53f969716  xdg-user-dirs-0.18.tar.gz
c0c0c7c494fe3d9e02344b175336937fb0bea46816313871a226057b6ea2e1e06b7289ab6f981e58d61c9a1339ace733e1f64e75a54cb466a10e13ecc191915d  man-use-local-docbook-xsl.patch
"
