77 |
|
|
78 |
gn2_update_icon_cache() |
gn2_update_icon_cache() |
79 |
{ |
{ |
80 |
|
local icons |
81 |
|
|
82 |
if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ] |
if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ] |
83 |
then |
then |
84 |
pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null |
if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ] |
85 |
local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null) |
then |
86 |
popd &> /dev/null |
pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null |
87 |
|
icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null) |
88 |
|
popd &> /dev/null |
89 |
|
else |
90 |
|
icons="usr/share/icons/hicolor" |
91 |
|
fi |
92 |
|
|
93 |
# abort here, if no icons where found |
# abort here, if no icons where found |
94 |
[[ -z ${icons} ]] && return |
[[ -z ${icons} ]] && return |
105 |
fi |
fi |
106 |
} |
} |
107 |
|
|
108 |
|
gn2_update_schemas() |
109 |
|
{ |
110 |
|
if [ -x ${MROOT}/usr/bin/glib-compile-schemas ] |
111 |
|
then |
112 |
|
echo "Updating glib schemas ..." |
113 |
|
${MROOT}/usr/bin/glib-compile-schemas ${MROOT}/usr/share/glib-2.0/schemas |
114 |
|
fi |
115 |
|
} |
116 |
|
|
117 |
|
gn2_update_gio() |
118 |
|
{ |
119 |
|
if [ -x ${MROOT}/usr/bin/gio-querymodules ] |
120 |
|
then |
121 |
|
echo "Updating glib gio modules ..." |
122 |
|
${MROOT}/usr/bin/gio-querymodules ${MROOT}/usr/$(mlibdir)/gio/modules |
123 |
|
fi |
124 |
|
} |
125 |
|
|
126 |
gn2_postinstall() |
gn2_postinstall() |
127 |
{ |
{ |
128 |
gn2_update_gconf |
gn2_update_gconf |
129 |
gn2_update_scrollkeeper |
gn2_update_scrollkeeper |
130 |
|
gn2_update_schemas |
131 |
|
gn2_update_gio |
132 |
gn2_update_desktop_db |
gn2_update_desktop_db |
133 |
gn2_update_mime_db |
gn2_update_mime_db |
134 |
gn2_update_icon_cache |
gn2_update_icon_cache |
137 |
gn2_postremove() |
gn2_postremove() |
138 |
{ |
{ |
139 |
gn2_update_scrollkeeper |
gn2_update_scrollkeeper |
140 |
|
gn2_update_schemas |
141 |
|
gn2_update_gio |
142 |
gn2_update_desktop_db |
gn2_update_desktop_db |
143 |
gn2_update_mime_db |
gn2_update_mime_db |
144 |
gn2_update_icon_cache |
gn2_update_icon_cache |