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

build() {
	meson -Dprefix=/usr build
	ninja -C build
}

check() {
	ninja -C build check
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="5b4e435f0b635d8f898ac7f5759f74a08ffbe2a56d41fee0e84ff57e73b98d08b57b4416f20b99f696dad8bcb1c20792b39acf836b0814220c0b386ea5f6b831  desktop-file-utils-0.26.tar.xz"