# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdg-utils
pkgver=1.1.2
pkgrel=0
pkgdesc="Basic desktop integration functions"
url="https://portland.freedesktop.org/wiki/"
arch="noarch"
license="MIT"
depends="xset xprop"
makedepends="libxml2-utils libxslt xmlto lynx"
subpackages="$pkgname-doc"
source="http://portland.freedesktop.org/download/xdg-utils-$pkgver.tar.gz
	xdg-screensaver-mv-T.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

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

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

sha512sums="1927506065788b5f8bba8b0617a8ee585265342fa40c4b73000d320acd5909036daef94d49495b00982dbb67b7706b2f1ed949cb4cc519dfa534be2c1c8f74db  xdg-utils-1.1.2.tar.gz
db0896979fbc3b575826b4d732658564d08bcfc957b3fa1490fe02e4cc7b52adfa1e05956432a732dae8f50145e0040bc145739ba5692ae1b86fa74be8174436  xdg-screensaver-mv-T.patch"
