pkgname=desktop-file-utils pkgver=0.28 pkgdesc="Command line utilities for working with desktop entries" homepage="https://www.freedesktop.org/wiki/Software/desktop-file-utils" arch=(x86_64) license=(GPL-2.0-or-later) depends=( glib2 glibc ) makedepends=( git meson ) sources=("${pkgname}-${pkgver}.tar.xz" "update-desktop-database.HOOK" ) urls=("https://www.freedesktop.org/software/${pkgname}/releases/${sources[0]}" "update-desktop-database.HOOK" ) md5sums=("dec5d7265c802db1fde3980356931b7b" "55ba004a5ec2c3827a23c22287872dca" ) src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { meson setup build \ --prefix=/usr \ --buildtype=release \ -D b_pie=true meson configure --no-pager build meson compile -C build } src_install() { meson install -C build --destdir "$pkgdir" rm -rf "${pkgdir}/usr/share/emacs" leaf_install_hook ${filedir}/${sources[1]} } # vim:ft=sh syn=sh et sw=2: