From 45b9051c34681fc7f46e181fbcaf662f8e35dcc6 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Fri, 25 Oct 2024 23:05:28 -0400 Subject: [PATCH] mozc (#47) --- .github/workflows/ci.yml | 2 -- .gitignore | 1 + README.md | 1 + all.sh | 1 + scripts/mozc.sh | 15 +++++++++++++++ 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 scripts/mozc.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5def5de..293a130 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,8 +114,6 @@ jobs: if: ${{ github.ref == 'refs/heads/master' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Download artifact uses: actions/download-artifact@v4 with: diff --git a/.gitignore b/.gitignore index 60361d4..400d403 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build *.bz2 meta-*.json +cache/*mozc* diff --git a/README.md b/README.md index c49b849..5fe6d12 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Build plugins for [fcitx5-macos](https://github.com/fcitx-contrib/fcitx5-macos). * [chewing](https://github.com/fcitx/fcitx5-chewing): LGPL-2.1-or-later ### Japanese +* [mozc](https://github.com/fcitx/mozc): BSD-3-Clause * [skk](https://github.com/fcitx/fcitx5-skk): GPL-3.0-or-later * [anthy](https://github.com/fcitx/fcitx5-anthy): GPL-2.0-or-later diff --git a/all.sh b/all.sh index 36bf687..6f70606 100755 --- a/all.sh +++ b/all.sh @@ -3,6 +3,7 @@ set -e all_plugins=( + mozc bamboo chewing hangul diff --git a/scripts/mozc.sh b/scripts/mozc.sh new file mode 100755 index 0000000..51da3ab --- /dev/null +++ b/scripts/mozc.sh @@ -0,0 +1,15 @@ +set -e +mkdir -p fcitx5-mozc +. ./common.sh mozc $1 + +mkdir -p $DESTDIR$INSTALL_PREFIX/{lib/{fcitx5,mozc},share/fcitx5/{addon,inputmethod}} +for file in libmozc-$ARCH.so mozc_server-$ARCH mozc-addon.conf mozc.conf; do + [[ -f $CACHE_DIR/$file ]] || wget -P $CACHE_DIR https://github.com/fcitx-contrib/mozc-cmake/releases/download/latest/$file +done +cp $CACHE_DIR/libmozc-$ARCH.so $DESTDIR$INSTALL_PREFIX/lib/fcitx5/libmozc.so +cp $CACHE_DIR/mozc_server-$ARCH $DESTDIR$INSTALL_PREFIX/lib/mozc/mozc_server +cp $CACHE_DIR/mozc-addon.conf $DESTDIR$INSTALL_PREFIX/share/fcitx5/addon/mozc.conf +cp $CACHE_DIR/mozc.conf $DESTDIR$INSTALL_PREFIX/share/fcitx5/inputmethod/mozc.conf + +f5m_split_data +f5m_make_tarball mozc