diff --git a/srcpkgs/Terminal/template b/srcpkgs/Terminal/template index 65f720bd50..4b5d29282f 100644 --- a/srcpkgs/Terminal/template +++ b/srcpkgs/Terminal/template @@ -12,7 +12,6 @@ long_desc=" it unique among X terminal emulators." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/Thunar/template b/srcpkgs/Thunar/template index 4e5451f405..c89278e594 100644 --- a/srcpkgs/Thunar/template +++ b/srcpkgs/Thunar/template @@ -16,7 +16,6 @@ long_desc=" good start up time and directory load time." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" subpackages="$pkgname-devel" Add_dependency build pkg-config diff --git a/srcpkgs/dejavu-fonts-ttf/template b/srcpkgs/dejavu-fonts-ttf/template index ed7c32752b..06c3c76e3e 100644 --- a/srcpkgs/dejavu-fonts-ttf/template +++ b/srcpkgs/dejavu-fonts-ttf/template @@ -15,7 +15,6 @@ long_desc=" noarch=yes font_dirs="/usr/share/fonts/TTF" -triggers="x11-fonts" Add_dependency full font-util diff --git a/srcpkgs/docbook-xml/template b/srcpkgs/docbook-xml/template index 41adc22ef6..a51134d93f 100644 --- a/srcpkgs/docbook-xml/template +++ b/srcpkgs/docbook-xml/template @@ -27,7 +27,6 @@ long_desc=" noarch=yes noextract=yes -triggers="xml-catalog" Add_dependency full xmlcatmgr Add_dependency build unzip diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template index 957a8deac3..78f58b34c6 100644 --- a/srcpkgs/docbook-xsl/template +++ b/srcpkgs/docbook-xsl/template @@ -18,7 +18,6 @@ long_desc=" stylesheet." noarch=yes -triggers="xml-catalog" Add_dependency full xmlcatmgr Add_dependency full docbook-xml ">=4.2" diff --git a/srcpkgs/exo/template b/srcpkgs/exo/template index bed00b5082..d1b56f1de9 100644 --- a/srcpkgs/exo/template +++ b/srcpkgs/exo/template @@ -12,7 +12,6 @@ long_desc=" conf_files="/etc/xdg/xfce4/helpers.rc" gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" subpackages="$pkgname-devel" Add_dependency build pkg-config diff --git a/srcpkgs/font-adobe-100dpi/template b/srcpkgs/font-adobe-100dpi/template index 1a6e04fcbc..0512b5371d 100644 --- a/srcpkgs/font-adobe-100dpi/template +++ b/srcpkgs/font-adobe-100dpi/template @@ -20,7 +20,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/100dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-adobe-75dpi/template b/srcpkgs/font-adobe-75dpi/template index d4f0c6b368..3fd588a5a3 100644 --- a/srcpkgs/font-adobe-75dpi/template +++ b/srcpkgs/font-adobe-75dpi/template @@ -20,7 +20,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/75dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-adobe-utopia-100dpi/template b/srcpkgs/font-adobe-utopia-100dpi/template index c71c3f2dd2..35be54fb0a 100644 --- a/srcpkgs/font-adobe-utopia-100dpi/template +++ b/srcpkgs/font-adobe-utopia-100dpi/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/100dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-adobe-utopia-75dpi/template b/srcpkgs/font-adobe-utopia-75dpi/template index 59f646e996..cb7eb179e3 100644 --- a/srcpkgs/font-adobe-utopia-75dpi/template +++ b/srcpkgs/font-adobe-utopia-75dpi/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/75dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-adobe-utopia-type1/template b/srcpkgs/font-adobe-utopia-type1/template index 818b67b6c1..0fb8dc04c0 100644 --- a/srcpkgs/font-adobe-utopia-type1/template +++ b/srcpkgs/font-adobe-utopia-type1/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/Type1" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-100dpi/template b/srcpkgs/font-bh-100dpi/template index 57f6057a6c..d52e7b9b6b 100644 --- a/srcpkgs/font-bh-100dpi/template +++ b/srcpkgs/font-bh-100dpi/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/100dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-75dpi/template b/srcpkgs/font-bh-75dpi/template index f5a2a05486..f395d67f8f 100644 --- a/srcpkgs/font-bh-75dpi/template +++ b/srcpkgs/font-bh-75dpi/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/75dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-lucidatypewriter-100dpi/template b/srcpkgs/font-bh-lucidatypewriter-100dpi/template index bd7966b731..e84efe279e 100644 --- a/srcpkgs/font-bh-lucidatypewriter-100dpi/template +++ b/srcpkgs/font-bh-lucidatypewriter-100dpi/template @@ -17,7 +17,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/100dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-lucidatypewriter-75dpi/template b/srcpkgs/font-bh-lucidatypewriter-75dpi/template index edd4e547d6..2d9761882c 100644 --- a/srcpkgs/font-bh-lucidatypewriter-75dpi/template +++ b/srcpkgs/font-bh-lucidatypewriter-75dpi/template @@ -17,7 +17,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/75dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-ttf/template b/srcpkgs/font-bh-ttf/template index 66985263cc..243b6a65cd 100644 --- a/srcpkgs/font-bh-ttf/template +++ b/srcpkgs/font-bh-ttf/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/TTF" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bh-type1/template b/srcpkgs/font-bh-type1/template index 2ce69de96b..df0787e5ba 100644 --- a/srcpkgs/font-bh-type1/template +++ b/srcpkgs/font-bh-type1/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/Type1" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bitstream-100dpi/template b/srcpkgs/font-bitstream-100dpi/template index f6099ec083..7ae23c90ff 100644 --- a/srcpkgs/font-bitstream-100dpi/template +++ b/srcpkgs/font-bitstream-100dpi/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/100dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bitstream-75dpi/template b/srcpkgs/font-bitstream-75dpi/template index 397a46e68a..10cfc2f3a2 100644 --- a/srcpkgs/font-bitstream-75dpi/template +++ b/srcpkgs/font-bitstream-75dpi/template @@ -18,7 +18,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/75dpi" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bitstream-speedo/template b/srcpkgs/font-bitstream-speedo/template index d32d3717b1..60ab3b10bd 100644 --- a/srcpkgs/font-bitstream-speedo/template +++ b/srcpkgs/font-bitstream-speedo/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/lib/X11/fonts/Speedo" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-bitstream-type1/template b/srcpkgs/font-bitstream-type1/template index d2fc2d7e17..9cc4720662 100644 --- a/srcpkgs/font-bitstream-type1/template +++ b/srcpkgs/font-bitstream-type1/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/Type1" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-cursor-misc/template b/srcpkgs/font-cursor-misc/template index 30b5e987df..0c960949f7 100644 --- a/srcpkgs/font-cursor-misc/template +++ b/srcpkgs/font-cursor-misc/template @@ -16,7 +16,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-daewoo-misc/template b/srcpkgs/font-daewoo-misc/template index a409de8cbe..ba96d9ceed 100644 --- a/srcpkgs/font-daewoo-misc/template +++ b/srcpkgs/font-daewoo-misc/template @@ -15,7 +15,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-dec-misc/template b/srcpkgs/font-dec-misc/template index d5fa41de9c..1b5fcace84 100644 --- a/srcpkgs/font-dec-misc/template +++ b/srcpkgs/font-dec-misc/template @@ -17,7 +17,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-ibm-type1/template b/srcpkgs/font-ibm-type1/template index 23306e5015..1626ce33fb 100644 --- a/srcpkgs/font-ibm-type1/template +++ b/srcpkgs/font-ibm-type1/template @@ -15,7 +15,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/Type1" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-isas-misc/template b/srcpkgs/font-isas-misc/template index 33e364b04e..ba0425ea92 100644 --- a/srcpkgs/font-isas-misc/template +++ b/srcpkgs/font-isas-misc/template @@ -14,7 +14,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-jis-misc/template b/srcpkgs/font-jis-misc/template index cf4b8abb33..aa8ab7f25c 100644 --- a/srcpkgs/font-jis-misc/template +++ b/srcpkgs/font-jis-misc/template @@ -14,7 +14,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-misc-misc/template b/srcpkgs/font-misc-misc/template index f313b8c716..cee693d13a 100644 --- a/srcpkgs/font-misc-misc/template +++ b/srcpkgs/font-misc-misc/template @@ -14,7 +14,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-mutt-misc/template b/srcpkgs/font-mutt-misc/template index 83b3781561..15459b733f 100644 --- a/srcpkgs/font-mutt-misc/template +++ b/srcpkgs/font-mutt-misc/template @@ -14,7 +14,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/share/fonts/X11/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/font-sony-misc/template b/srcpkgs/font-sony-misc/template index f1b85e11a5..9c923e1ec4 100644 --- a/srcpkgs/font-sony-misc/template +++ b/srcpkgs/font-sony-misc/template @@ -14,7 +14,6 @@ Add_dependency full font-util noarch=yes font_dirs="/usr/lib/X11/fonts/misc" -triggers="x11-fonts" post_install() { diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template index c41869e779..93b5444bf9 100644 --- a/srcpkgs/gimp/template +++ b/srcpkgs/gimp/template @@ -17,7 +17,7 @@ long_desc=" support and more than 8 bits per channel." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache mimedb" +triggers="mimedb" conf_files="/etc/gimp/2.0/unitrc /etc/gimp/2.0/gtkrc /etc/gimp/2.0/menurc diff --git a/srcpkgs/gnome-icon-theme/template b/srcpkgs/gnome-icon-theme/template index 383d2b8ea7..c3bfc17f3b 100644 --- a/srcpkgs/gnome-icon-theme/template +++ b/srcpkgs/gnome-icon-theme/template @@ -12,7 +12,6 @@ long_desc=" noarch=yes gtk_iconcache_dirs="/usr/share/icons/gnome" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/gsfonts/template b/srcpkgs/gsfonts/template index bb89b768aa..48a83909ae 100644 --- a/srcpkgs/gsfonts/template +++ b/srcpkgs/gsfonts/template @@ -12,7 +12,6 @@ long_desc=" This packages includes the Ghostscript standard Type1 fonts." font_dirs="/usr/share/fonts/Type1" -triggers="x11-fonts" noarch=yes Add_dependency full font-util diff --git a/srcpkgs/hicolor-icon-theme/template b/srcpkgs/hicolor-icon-theme/template index f60c0e77a3..00a5eeb7ed 100644 --- a/srcpkgs/hicolor-icon-theme/template +++ b/srcpkgs/hicolor-icon-theme/template @@ -11,4 +11,3 @@ long_desc=" noarch=yes gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" diff --git a/srcpkgs/libglade/template b/srcpkgs/libglade/template index cd1748b29b..2d768013d6 100644 --- a/srcpkgs/libglade/template +++ b/srcpkgs/libglade/template @@ -18,6 +18,10 @@ long_desc=" with support for keyboard accelerators and automatic signal connection." +# Register DTDs with xmlcatmgr. +xml_entries="system http://glade.gnome.org/glade-2.0.dtd +/usr/share/xml/libglade/glade-2.0.dtd" + subpackages="$pkgname-devel" Add_dependency build pkg-config Add_dependency build python @@ -25,7 +29,3 @@ Add_dependency full glibc Add_dependency full xmlcatmgr Add_dependency full gtk+ -# Register DTDs with xmlcatmgr. -triggers="xml-catalog" -xml_entries="system http://glade.gnome.org/glade-2.0.dtd - /usr/share/xml/libglade/glade-2.0.dtd" diff --git a/srcpkgs/libxfcegui4/template b/srcpkgs/libxfcegui4/template index f6c5e8fa9f..6cff4bc23f 100644 --- a/srcpkgs/libxfcegui4/template +++ b/srcpkgs/libxfcegui4/template @@ -11,7 +11,6 @@ long_desc=" conf_files="/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml" gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" subpackages="$pkgname-devel" Add_dependency build pkg-config diff --git a/srcpkgs/midori/template b/srcpkgs/midori/template index 590a965551..681bfc9540 100644 --- a/srcpkgs/midori/template +++ b/srcpkgs/midori/template @@ -23,7 +23,6 @@ long_desc=" conf_files="/etc/xdg/midori/search" gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/mousepad/template b/srcpkgs/mousepad/template index 03356a2551..cc674a6a48 100644 --- a/srcpkgs/mousepad/template +++ b/srcpkgs/mousepad/template @@ -12,7 +12,6 @@ long_desc=" would have been difficult for Leafpad for various reasons." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/orage/template b/srcpkgs/orage/template index 3257f7f894..22deaff834 100644 --- a/srcpkgs/orage/template +++ b/srcpkgs/orage/template @@ -11,7 +11,6 @@ long_desc=" A simple calendar application with reminders for Xfce." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/ristretto/template b/srcpkgs/ristretto/template index e9701fa432..7d313edc11 100644 --- a/srcpkgs/ristretto/template +++ b/srcpkgs/ristretto/template @@ -11,7 +11,6 @@ long_desc=" environment." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency full dbus-glib Add_dependency full libxfcegui4 diff --git a/srcpkgs/tango-icon-theme/template b/srcpkgs/tango-icon-theme/template index c744b518ef..0925625ee5 100644 --- a/srcpkgs/tango-icon-theme/template +++ b/srcpkgs/tango-icon-theme/template @@ -14,7 +14,6 @@ long_desc=" noarch=yes gtk_iconcache_dirs="/usr/share/icons/Tango" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/thunar-volman/template b/srcpkgs/thunar-volman/template index 29c1da0d57..325f1a4b15 100644 --- a/srcpkgs/thunar-volman/template +++ b/srcpkgs/thunar-volman/template @@ -15,6 +15,5 @@ long_desc=" photo collection." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency full Thunar diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template index 4e1c4bb57c..d52ad9eb2b 100644 --- a/srcpkgs/transmission/template +++ b/srcpkgs/transmission/template @@ -14,7 +14,6 @@ long_desc=" back-end." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="update-desktopdb gtk-icon-cache" Add_dependency build intltool Add_dependency build curl diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template index a6e9beac81..a8acb21a89 100644 --- a/srcpkgs/wicd/template +++ b/srcpkgs/wicd/template @@ -31,7 +31,6 @@ conf_files=" /etc/wicd/encryption/templates/active" gtk_iconcache_dirs="/usr/share/icons/hicolor" openrc_services="wicd default" -triggers="gtk-icon-cache" Add_dependency full dbus-python Add_dependency full pygtk diff --git a/srcpkgs/xfce-utils/template b/srcpkgs/xfce-utils/template index 648561394d..6c2edbdd4f 100644 --- a/srcpkgs/xfce-utils/template +++ b/srcpkgs/xfce-utils/template @@ -10,7 +10,6 @@ long_desc=" This package includes utilities for the Xfce Desktop Environment." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/xfce4-appfinder/template b/srcpkgs/xfce4-appfinder/template index e80c07882a..acc79322f2 100644 --- a/srcpkgs/xfce4-appfinder/template +++ b/srcpkgs/xfce4-appfinder/template @@ -10,7 +10,6 @@ long_desc=" xfce-appfinder shows system wide installed applications." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/xfce4-mixer/template b/srcpkgs/xfce4-mixer/template index d8082275ff..a5e581b1d4 100644 --- a/srcpkgs/xfce4-mixer/template +++ b/srcpkgs/xfce4-mixer/template @@ -10,7 +10,6 @@ long_desc=" This package includes a sound mixer for the XFce Desktop Environment." gtk_iconcache_dirs="/usr/share/xfce4-mixer/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/xfce4-notifyd/template b/srcpkgs/xfce4-notifyd/template index fe7f97c6b9..b44feecacc 100644 --- a/srcpkgs/xfce4-notifyd/template +++ b/srcpkgs/xfce4-notifyd/template @@ -11,7 +11,6 @@ long_desc=" that implements the Freedesktop.org Desktop Notifications Specification." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency full libxfcegui4 Add_dependency full libsexy diff --git a/srcpkgs/xfce4-panel/template b/srcpkgs/xfce4-panel/template index d31a0fa28c..ee8a6d1be2 100644 --- a/srcpkgs/xfce4-panel/template +++ b/srcpkgs/xfce4-panel/template @@ -18,7 +18,6 @@ conf_files="/etc/xdg/xfce4/panel/launcher-7.rc /etc/xdg/xfce4/panel/launcher-10.rc /etc/xdg/xfce4/panel/clock-14.rc" gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" subpackages="$pkgname-devel" Add_dependency build pkg-config diff --git a/srcpkgs/xfce4-session/template b/srcpkgs/xfce4-session/template index be2a8b0fd3..5e13ce4d00 100644 --- a/srcpkgs/xfce4-session/template +++ b/srcpkgs/xfce4-session/template @@ -12,7 +12,6 @@ long_desc=" conf_files="/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml" gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" subpackages="$pkgname-devel" Add_dependency build pkg-config diff --git a/srcpkgs/xfdesktop/template b/srcpkgs/xfdesktop/template index 5c54043e96..448fafc391 100644 --- a/srcpkgs/xfdesktop/template +++ b/srcpkgs/xfdesktop/template @@ -10,7 +10,6 @@ long_desc=" This package includes a desktop manager for the XFce Desktop Environment." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/srcpkgs/xfwm4/template b/srcpkgs/xfwm4/template index 4358e8bb69..77494fd019 100644 --- a/srcpkgs/xfwm4/template +++ b/srcpkgs/xfwm4/template @@ -12,7 +12,6 @@ long_desc=" KDE3 and Xfce." gtk_iconcache_dirs="/usr/share/icons/hicolor" -triggers="gtk-icon-cache" Add_dependency build pkg-config Add_dependency build intltool diff --git a/xbps-src/shutils/metadata.sh b/xbps-src/shutils/metadata.sh index 62e1bf4215..ef0bb0baca 100644 --- a/xbps-src/shutils/metadata.sh +++ b/xbps-src/shutils/metadata.sh @@ -346,16 +346,6 @@ _EOF chmod 644 ${DESTDIR}/files.plist ${DESTDIR}/props.plist [ -f $metadir/flist ] && chmod 644 $metadir/flist - # - # Update desktop-file-utils database if package contains - # any desktop file in /usr/share/applications. - # - if [ -d ${DESTDIR}/usr/share/applications ]; then - if find . -type f -name \*.desktop 2>&1 >/dev/null; then - triggers="$triggers update-desktopdb" - fi - fi - # # Create the INSTALL/REMOVE scripts if package uses them # or uses any available trigger. diff --git a/xbps-src/shutils/metadata_scripts.sh b/xbps-src/shutils/metadata_scripts.sh index 133cf28ab6..f22621467d 100644 --- a/xbps-src/shutils/metadata_scripts.sh +++ b/xbps-src/shutils/metadata_scripts.sh @@ -23,12 +23,22 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #- +_add_trigger() +{ + local f found name="$1" + + for f in ${triggers}; do + [ "$f" = "$name" ] && found=1 + done + [ -z "$found" ] && triggers="$triggers $name" +} + xbps_write_metadata_scripts_pkg() { local action="$1" local tmpf=$(mktemp -t xbps-install.XXXXXXXXXX) || exit 1 local fpattern="s|${DESTDIR}||g;s|^\./$||g;/^$/d" - local targets found info_files + local targets f info_files case "$action" in install) ;; @@ -81,11 +91,7 @@ _EOF fi done if [ -n "${info_files}" ]; then - for f in ${triggers}; do - [ "$f" = "info-files" ] && found=1 - done - [ -z "$found" ] && triggers="$triggers info-files" - unset found + _add_trigger info-files echo "export info_files=\"${info_files}\"" >> $tmpf echo >> $tmpf fi @@ -103,11 +109,7 @@ _EOF # (Un)Register a shell in /etc/shells. # if [ -n "${register_shell}" ]; then - for f in ${triggers}; do - [ "$f" = "register-shell" ] && found=1 - done - [ -z "$found" ] && triggers="$triggers register-shell" - unset found + _add_trigger register-shell echo "export register_shell=\"${register_shell}\"" >> $tmpf echo >> $tmpf fi @@ -133,11 +135,15 @@ _EOF echo "export xml_entries=\"${xml_entries}\"" >> $tmpf echo >> $tmpf fi + if [ -n "${sgml_entries}" -o -n "${xml_entries}" ]; then + _add_trigger xml-catalog + fi # # Handle X11 font updates via mkfontdir/mkfontscale. # if [ -n "${font_dirs}" ]; then + _add_trigger x11-fonts echo "export font_dirs=\"${font_dirs}\"" >> $tmpf echo >> $tmpf fi @@ -146,11 +152,25 @@ _EOF # Handle GTK+ Icon cache directories. # if [ -n "${gtk_iconcache_dirs}" ]; then + _add_trigger gtk-icon-cache echo "export gtk_iconcache_dirs=\"${gtk_iconcache_dirs}\"" \ >> $tmpf echo >> $tmpf fi + # + # Handle .desktop files in /usr/share/applications with + # desktop-file-utils. + # + if [ -d ${DESTDIR}/usr/share/applications ]; then + if find . -type f -name \*.desktop 2>&1 >/dev/null; then + _add_trigger update-desktopdb + fi + fi + + # + # Write the INSTALL/REMOVE package scripts. + # if [ -n "$triggers" ]; then found=1 echo "case \"\${ACTION}\" in" >> $tmpf