mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
xbps-base-files: some more fixes for the triggers.
--HG-- extra : convert_revision : 9a96f3d2101793c8dd8e140dc2728cadd9496f61
This commit is contained in:
parent
39c24fdd2c
commit
fcb0e12cf1
7 changed files with 34 additions and 34 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-base-files'
|
# Template file for 'xbps-base-files'
|
||||||
pkgname=xbps-base-files
|
pkgname=xbps-base-files
|
||||||
version=0.17
|
version=0.18
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="xbps base system files"
|
short_desc="xbps base system files"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
|
@ -14,22 +14,23 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
case "$2" in
|
if [ "$2" = "post-remove" -a "${PKGNAME}" = "gtk+" ]; then
|
||||||
post-install)
|
|
||||||
for dir in ${gtk_iconcache_dirs}; do
|
|
||||||
if [ -x ${iconcache_bin} ]; then
|
|
||||||
echo -n "Updating GTK+ icon cache for "
|
|
||||||
echo -n "${dir}... "
|
|
||||||
${iconcache_bin} -q -f -t ${dir}
|
|
||||||
echo "done."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
post-remove)
|
|
||||||
for dir in ${gtk_iconcache_dirs}; do
|
for dir in ${gtk_iconcache_dirs}; do
|
||||||
if [ -f ${dir}/icon-theme.cache ]; then
|
if [ -f ${dir}/icon-theme.cache ]; then
|
||||||
rm -f ${dir}/icon-theme.cache
|
rm -f ${dir}/icon-theme.cache
|
||||||
echo "Removed GTK+ icon theme cache for ${dir}."
|
echo -n "Removed GTK+ icon theme "
|
||||||
|
echo "cache for ${dir}."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
case "$2" in
|
||||||
|
post-*)
|
||||||
|
for dir in ${gtk_iconcache_dirs}; do
|
||||||
|
if [ -x ${iconcache_bin} ]; then
|
||||||
|
echo -n "Updating GTK+ icon cache for "
|
||||||
|
echo "${dir}..."
|
||||||
|
${iconcache_bin} -q -f -t ${dir}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -15,12 +15,12 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
|
if [ "$2" = "post-remove" -a "${PKGNAME}" = "gtk+" ]; then
|
||||||
|
[ -f ${immodules_db} ] rm -f ${immodules_db}
|
||||||
|
break
|
||||||
|
fi
|
||||||
case "$2" in
|
case "$2" in
|
||||||
post-*)
|
post-*)
|
||||||
if [ "${PKGNAME}" = "gtk+" ]; then
|
|
||||||
[ -f ${immodules_db} ] rm -f ${immodules_db}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ -x ${immodules_bin} ]; then
|
if [ -x ${immodules_bin} ]; then
|
||||||
echo "Updating GTK's immodules database..."
|
echo "Updating GTK's immodules database..."
|
||||||
${immodules_bin} > ${immodules_db}
|
${immodules_bin} > ${immodules_db}
|
||||||
|
|
|
@ -15,12 +15,12 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
|
if [ "$2" = "post-remove" -a "${PKGNAME}" = "gtk+" ]; then
|
||||||
|
[ -f ${pixbuf_loaders} ] && rm -f ${pixbuf_loaders}
|
||||||
|
break
|
||||||
|
fi
|
||||||
case "$2" in
|
case "$2" in
|
||||||
post-*)
|
post-*)
|
||||||
if [ "${PKGNAME}" = "gtk+" ]; then
|
|
||||||
[ -f ${pixbuf_loaders} ] && rm -f ${pixbuf_loaders}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ -x ${pixbuf_bin} ]; then
|
if [ -x ${pixbuf_bin} ]; then
|
||||||
echo "Updating GTK's pixbuf modules file..."
|
echo "Updating GTK's pixbuf modules file..."
|
||||||
${pixbuf_bin} > ${pixbuf_loaders}
|
${pixbuf_bin} > ${pixbuf_loaders}
|
||||||
|
|
|
@ -15,15 +15,15 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
|
if [ "$2" = "post-remove" -a "${PKGNAME}" = "pango" ]; then
|
||||||
|
if [ -f ${pango_modules} ]; then
|
||||||
|
echo "Removing pango modules file..."
|
||||||
|
rm -f ${pango_modules}
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
fi
|
||||||
case "$2" in
|
case "$2" in
|
||||||
post-*)
|
post-*)
|
||||||
if [ "${PKGNAME}" = "pango" ]; then
|
|
||||||
if [ -f ${pango_modules} ]; then
|
|
||||||
echo "Removing pango modules file..."
|
|
||||||
rm -f ${pango_modules}
|
|
||||||
fi
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ -x ${pango_bin} ]; then
|
if [ -x ${pango_bin} ]; then
|
||||||
echo "Updating pango modules file..."
|
echo "Updating pango modules file..."
|
||||||
${pango_bin} > ${pango_modules}
|
${pango_bin} > ${pango_modules}
|
||||||
|
|
|
@ -17,12 +17,12 @@ targets)
|
||||||
echo "post-install post-remove"
|
echo "post-install post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
|
if [ "$2" = "post-remove" -a "${PKGNAME}" = "desktop-file-utils" ]; then
|
||||||
|
[ -f ${desktopdb_cache} ] && rm -f ${desktopdb_cache}
|
||||||
|
break
|
||||||
|
fi
|
||||||
case "$2" in
|
case "$2" in
|
||||||
post-*)
|
post-*)
|
||||||
if [ "${PKGNAME}" = "desktop-file-utils" ]; then
|
|
||||||
[ -f ${desktopdb_cache} ] && rm -f ${desktopdb_cache}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ -x ${desktopdb_bin} ]; then
|
if [ -x ${desktopdb_bin} ]; then
|
||||||
echo "Updating MIME database..."
|
echo "Updating MIME database..."
|
||||||
${desktopdb_bin} ${desktopdb_dir}
|
${desktopdb_bin} ${desktopdb_dir}
|
||||||
|
|
|
@ -67,7 +67,6 @@ run)
|
||||||
[ -n "${sgml_entries}" -a ! -f "${sgml_catalog}" ] && exit 0
|
[ -n "${sgml_entries}" -a ! -f "${sgml_catalog}" ] && exit 0
|
||||||
[ -n "${xml_entries}" -a ! -f "${xml_catalog}" ] && exit 0
|
[ -n "${xml_entries}" -a ! -f "${xml_catalog}" ] && exit 0
|
||||||
|
|
||||||
echo "Running $trigger trigger..."
|
|
||||||
case "$2" in
|
case "$2" in
|
||||||
post-install)
|
post-install)
|
||||||
register_entries
|
register_entries
|
||||||
|
|
Loading…
Add table
Reference in a new issue