# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=desktop-file-utils
pkgver=0.24
pkgrel=0
pkgdesc="Utilities for working with Desktop Entry files"
url="https://www.freedesktop.org/wiki/Software/desktop-file-utils/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="glib-dev"
subpackages="$pkgname-doc"
source="https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-$pkgver.tar.xz"

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

check() {
	make check
}

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

sha512sums="b19d700d4403c8757c62e49bb7650e0138a85e799f79de07b0d0099a52398a3ead90c8125ccc883df6e2a3f8f5f97696009ebb7452dc7acc25afeef20e06fde0  desktop-file-utils-0.24.tar.xz"