Skip to content

Instantly share code, notes, and snippets.

@onokatio
Created May 26, 2020 13:49
Show Gist options
  • Save onokatio/43c4c22edc6427407dd09e0327040aaf to your computer and use it in GitHub Desktop.
Save onokatio/43c4c22edc6427407dd09e0327040aaf to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index f9f2bf3..2a71d42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,12 +30,9 @@ source=(
japanese_usage_dictionary::git+https://github.com/hiroyuki-komatsu/japanese-usage-dictionary.git#commit=${_japanese_usage_dictionary_rev}
fix-build-with-gcc8.patch::https://salsa.debian.org/debian/mozc/raw/master/debian/patches/Fix-build-with-gcc8.patch
mozc-2.23.2815.102-python-3.patch::https://github.com/google/mozc/files/4048079/mozc-2.23.2815.102-python-3.patch.txt
- add_support_new_japanese_era_for_mozc.patch
- add_support_new_japanese_era_for_ut2.patch
- https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-${_fcitxver}.patch
https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-icon.tar.gz
- https://osdn.net/users/trickart/pf/trickart_pkgbuild/dl/mozc-neologd-ut/mozcdic-neologd-ut-${_neologddate}.${_neologdrel}.tar.bz2
- "https://osdn.net/downloads/users/26/26381/mozc-ut2-2.20.2677.102.20171008.tar.xz"
+ "https://osdn.net/frs/chamber_redir.php?m=jaist&f=%2Fusers%2F26%2F26417%2Fmozcdic-neologd-ut-${_neologddate}.${_neologdrel}.tar.bz2"
+ "https://osdn.net/frs/chamber_redir.php?m=jaist&f=%2Fusers%2F26%2F26381%2Fmozc-ut2-${_ut2mozcver}.${_ut2dicver}.tar.xz"
)
sha1sums=(
@@ -43,25 +40,19 @@ sha1sums=(
'SKIP'
'4fe935b5c2d316119cf8957b6518b3b5e7bf6ecf'
'1b281471dac2eeab6d9ad7c47e3929e1ac402344'
- 'ea8df0fc171c321457bd0692795f0c61c7ee04ce'
- 'fa72a89ac18649816e9717d4468a6145db802625'
- '63a2b10e7d209c6216e2d912b2629efc44c637ea'
'883f4fc489a9ed1c07d2d2ec37ca72509f04ea5d'
- 'c09d1da0445868474ed0dae2b580d17dbc2f5364'
- '3ac129c9cd843c51a3e0a124a47cfb8eddab2c08'
+ 'SKIP'
+ 'SKIP'
)
prepare() {
# japanese era patch is based add-new-japanese-era.patch
# https://salsa.debian.org/debian/mozc/raw/master/debian/patches/add_support_new_japanese_era.patch
- patch -Np0 -i ${srcdir}/add_support_new_japanese_era_for_mozc.patch
- patch -Np0 -i ${srcdir}/add_support_new_japanese_era_for_ut2.patch
cp -f $srcdir/mozc-ut2-${_ut2mozcver}.${_ut2dicver}/src/data/dictionary_oss/dictionary*.txt $srcdir/mozc-${_mozcver}+dfsg/src/data/dictionary_oss/
cd mozc-${_mozcver}+dfsg
patch -Np1 -i ${srcdir}/fix-build-with-gcc8.patch
patch -Np1 -i ${srcdir}/mozc-2.23.2815.102-python-3.patch
- patch -Np1 -i ${srcdir}/fcitx-mozc-${_fcitxver}.patch
mkdir -p src/third_party/
cp -a ${srcdir}/japanese_usage_dictionary src/third_party/
cat ${srcdir}/mozcdic-neologd-ut-${_neologddate}.${_neologdrel}/mozcdic-*-ut-*.txt >> src/data/dictionary_oss/dictionary00.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment