summaryrefslogtreecommitdiff
path: root/community/ibus-pinyin/ibus-pinyin.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ibus-pinyin/ibus-pinyin.install')
-rw-r--r--community/ibus-pinyin/ibus-pinyin.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/ibus-pinyin/ibus-pinyin.install b/community/ibus-pinyin/ibus-pinyin.install
new file mode 100644
index 000000000..d9ad92426
--- /dev/null
+++ b/community/ibus-pinyin/ibus-pinyin.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "Creating INDEX. Please wait..."
+ cd /usr/share/ibus-pinyin/db
+ echo "Creating index for android.db..."
+ sqlite3 android.db '.read create_index.sql'
+ echo "Creating index for open-phrase.db..."
+ sqlite3 open-phrase.db '.read create_index.sql'
+ echo "Done."
+}
+
+post_upgrade() {
+ post_install $1
+}