# Maintainer: Natanael Copa pkgname=desktop-file-utils pkgver=0.26 pkgrel=1 pkgdesc="Command line utilities for working with desktop entries" url="http://www.freedesktop.org/wiki/Software/desktop-file-utils" arch="all" license="GPL-2.0-or-later" makedepends="glib-dev gettext-dev meson" subpackages="$pkgname-doc $pkgname-emacs::noarch" triggers="$pkgname.trigger=/usr/share/applications" source="https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-$pkgver.tar.xz" build() { abuild-meson . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild -v -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } emacs() { pkgdesc="Emacs mode for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel emacs" amove usr/share/emacs } sha512sums="5b4e435f0b635d8f898ac7f5759f74a08ffbe2a56d41fee0e84ff57e73b98d08b57b4416f20b99f696dad8bcb1c20792b39acf836b0814220c0b386ea5f6b831 desktop-file-utils-0.26.tar.xz"