pkgsrc/sysutils/desktop-file-utils/files/install.tmpl
abs c563d0e54f Switch desktopdb.mk to not depend on desktop-file-utils
Consumers of desktop entries still register a full dependency
on desktop-file-utils, but apps that install a .desktop file
in share/applications do not. They still have a POST-INSTALL
step to call UPDATE_DESKTOPDB, but only if it is already
installed.

Should be not functional difference for any system with a
consumer of desktop entries installed, but for an app
with a .desktop entry the build of python, meson & glib2
may be deferred. Helpful for small apps and lower power
systems
2022-08-19 22:05:10 +00:00

13 lines
353 B
Cheetah

# $NetBSD: install.tmpl,v 1.2 2022/08/19 22:05:10 abs Exp $
APPLICATIONS_PATH="@APPLICATIONS_PATH@"
UPDATE_DESKTOPDB="@UPDATE_DESKTOPDB@"
case ${STAGE} in
POST-INSTALL|DEINSTALL)
# desktop-file-utils may not be installed
if [ -x ${UPDATE_DESKTOPDB} ] ; then
${UPDATE_DESKTOPDB} ${APPLICATIONS_PATH}
fi
;;
esac