locally installing ibus-keyman component

This commit is contained in:
glasseyes 2018-11-07 14:45:53 +07:00
parent 3f60361d17
commit 3e50834ecf

View file

@ -27,7 +27,7 @@ fi
if [ -f "/usr/share/ibus/component/kmfl.xml" ] && [ "${SUDOINSTALL}" == "yes" ]; then
if grep -Fq "/usr/lib/ibus" /usr/share/ibus/component/kmfl.xml
then
echo "component file is ibus-kmfl package version so move it"
echo "component file is in ibus-kmfl package version so move it"
echo "run 'sudo make uninstall' to put it back"
mv /usr/share/ibus/component/kmfl.xml /usr/share/doc/ibus-kmfl/
else
@ -35,6 +35,18 @@ if [ -f "/usr/share/ibus/component/kmfl.xml" ] && [ "${SUDOINSTALL}" == "yes" ];
fi
fi
if [ -f "/usr/share/ibus/component/keyman.xml" ] && [ "${SUDOINSTALL}" == "yes" ]; then
if grep -Fq "/usr/lib/ibus" /usr/share/ibus/component/keyman.xml
then
echo "component file is in ibus-keyman package version so move it"
echo "run 'sudo make uninstall' to put it back"
mv /usr/share/ibus/component/keyman.xml /usr/share/doc/ibus-keyman/
else
echo "component file is local one so overwrite it"
fi
fi
cd keyboardprocessor
ninja install
cd $BASEDIR
@ -82,3 +94,7 @@ if [ -f "/usr/share/doc/ibus-kmfl/kmfl.xml" ] && [ "${SUDOINSTALL}" == "uninstal
mv /usr/share/doc/ibus-kmfl/kmfl.xml /usr/share/ibus/component/
fi
if [ -f "/usr/share/doc/ibus-keyman/keyman.xml" ] && [ "${SUDOINSTALL}" == "uninstall" ]; then
echo "putting ibus-keyman package component file back"
mv /usr/share/doc/ibus-keyman/keyman.xml /usr/share/ibus/component/
fi