tazpkg diff tazpkg @ rev 567
tazpkg: Add support to use gtk-update-icon-cache if /usr/share/icons/hicolor is in files.list. Also add support to use glib-compile-schemas if /usr/share/glib-2.0/schemas is in files.list.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Mar 07 11:05:18 2012 -0500 (2012-03-07) |
parents | 0c46c686099b |
children | a57db8ac9e3a |
line diff
1.1 --- a/tazpkg Mon Mar 05 16:39:32 2012 +0100 1.2 +++ b/tazpkg Wed Mar 07 11:05:18 2012 -0500 1.3 @@ -629,6 +629,10 @@ 1.4 if [ "$(fgrep /usr/share/mime $ROOT$INSTALLED/$PACKAGE/files.list)" ]; then 1.5 updatemimedb=yes 1.6 fi 1.7 + # Update-icon-database 1.8 + if [ "$(fgrep /usr/share/icon/hicolor $ROOT$INSTALLED/$PACKAGE/files.list)" ]; then 1.9 + updateicondb=yes 1.10 + fi 1.11 # Compile glib schemas if needed. 1.12 if [ "$(fgrep /usr/share/glib-2.0/schemas $ROOT$INSTALLED/$PACKAGE/files.list)" ]; then 1.13 compile_schemas=yes 1.14 @@ -1388,6 +1392,13 @@ 1.15 fi 1.16 } 1.17 1.18 +update_icon_database() 1.19 +{ 1.20 + if [ -f $1/usr/bin/gtk-update-icon-cache ] && [ -n "$updateicondb" ]; then 1.21 + $1/usr/bin/gtk-update-icon-cache $1/usr/share/icons/hicolor 1.22 + fi 1.23 +} 1.24 + 1.25 compile_glib_schemas() 1.26 { 1.27 if [ -f $1/usr/bin/glib-compile-schemas ] && [ -n "$compile_schemas" ]; then 1.28 @@ -1804,7 +1815,9 @@ 1.29 fi 1.30 install_package $ROOT 1.31 update_desktop_database $ROOT 1.32 - update_mime_database $ROOT ;; 1.33 + update_mime_database $ROOT 1.34 + update_icon_database $ROOT 1.35 + compile_glib_schemas $ROOT ;; 1.36 install-list|get-install-list) 1.37 # Install a set of packages from a list. 1.38 check_root