( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationMono-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationMono-Bold.ttf LiberationMono-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationMono-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationMono-BoldItalic.ttf LiberationMono-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationMono-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationMono-Italic.ttf LiberationMono-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationMono-Regular.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationMono-Regular.ttf LiberationMono-Regular.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSans-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSans-Bold.ttf LiberationSans-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSans-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSans-BoldItalic.ttf LiberationSans-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSans-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSans-Italic.ttf LiberationSans-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSans-Regular.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSans-Regular.ttf LiberationSans-Regular.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSerif-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSerif-Bold.ttf LiberationSerif-Bold.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSerif-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSerif-BoldItalic.ttf LiberationSerif-BoldItalic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSerif-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSerif-Italic.ttf LiberationSerif-Italic.ttf )
( cd usr/share/calibre/fonts/liberation ; rm -rf LiberationSerif-Regular.ttf )
( cd usr/share/calibre/fonts/liberation ; ln -sf /usr/share/fonts/TTF/LiberationSerif-Regular.ttf LiberationSerif-Regular.ttf )

doinst() {
if [ -x /usr/bin/update-desktop-database ]; then
	/usr/bin/update-desktop-database -q
fi
if [ -x /usr/bin/update-mime-database ]; then
	/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
}
doinst
