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