new blfs: dev-utils/desktop-file-utils-0.28

This commit is contained in:
2025-12-31 13:00:22 -05:00
parent 334661e710
commit 6ffa592edf
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
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:

View File

@@ -0,0 +1,5 @@
target=(/usr/share/applications/*.desktop)
triggers=("install" "remove")
operation() {
/usr/bin/update-desktop-database --quiet
}