# Depends on libgooglepinyin

# Exit on error:
set -e

wget https://download.fcitx-im.org/fcitx-googlepinyin/fcitx-googlepinyin-0.1.6.tar.xz
tar xf fcitx-googlepinyin-0.1.6.tar.xz
cd fcitx-googlepinyin-0.1.6

cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release

#make
make install
cd ..
rm -rf fcitx-googlepinyin-0.1.6
rm fcitx-googlepinyin-0.1.6.tar.xz

exit 0
