if [ -x /usr/bin/glib-compile-schemas ]; then
  glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null
fi
if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime &> /dev/null
fi

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database &> /dev/null
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor &> /dev/null
fi

( cd usr/lib ; rm -rf libtracker-miner-0.16.so.0 )
( cd usr/lib ; ln -sf libtracker-miner-0.16.so.0.1501.0 libtracker-miner-0.16.so.0 )
( cd usr/lib ; rm -rf libtracker-extract-0.16.so )
( cd usr/lib ; ln -sf libtracker-extract-0.16.so.0.1501.0 libtracker-extract-0.16.so )
( cd usr/lib ; rm -rf libtracker-extract-0.16.so.0 )
( cd usr/lib ; ln -sf libtracker-extract-0.16.so.0.1501.0 libtracker-extract-0.16.so.0 )
( cd usr/lib/firefox-18.0.1/extensions ; rm -rf trackerfox@bustany.org )
( cd usr/lib/firefox-18.0.1/extensions ; ln -sf /usr/share/xul-ext/trackerfox trackerfox@bustany.org )
( cd usr/lib/thunderbird-17.0.2/extensions ; rm -rf trackerbird@bustany.org )
( cd usr/lib/thunderbird-17.0.2/extensions ; ln -sf /usr/share/xul-ext/trackerbird trackerbird@bustany.org )
( cd usr/lib/tracker-0.16 ; rm -rf libtracker-data.so.0 )
( cd usr/lib/tracker-0.16 ; ln -sf libtracker-data.so.0.1501.0 libtracker-data.so.0 )
( cd usr/lib/tracker-0.16 ; rm -rf libtracker-common.so )
( cd usr/lib/tracker-0.16 ; ln -sf libtracker-common.so.0.1501.0 libtracker-common.so )
( cd usr/lib/tracker-0.16 ; rm -rf libtracker-data.so )
( cd usr/lib/tracker-0.16 ; ln -sf libtracker-data.so.0.1501.0 libtracker-data.so )
( cd usr/lib/tracker-0.16 ; rm -rf libtracker-common.so.0 )
( cd usr/lib/tracker-0.16 ; ln -sf libtracker-common.so.0.1501.0 libtracker-common.so.0 )
( cd usr/lib ; rm -rf libtracker-sparql-0.16.so )
( cd usr/lib ; ln -sf libtracker-sparql-0.16.so.0.1501.0 libtracker-sparql-0.16.so )
( cd usr/lib ; rm -rf libtracker-miner-0.16.so )
( cd usr/lib ; ln -sf libtracker-miner-0.16.so.0.1501.0 libtracker-miner-0.16.so )
( cd usr/lib ; rm -rf libtracker-sparql-0.16.so.0 )
( cd usr/lib ; ln -sf libtracker-sparql-0.16.so.0.1501.0 libtracker-sparql-0.16.so.0 )
