summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoya Inada2020-11-11 12:57:13 +0900
committerNaoya Inada2020-11-11 12:57:13 +0900
commit1897d3ab3929cca2d9b3c80fac4bd03756977477 (patch)
treea1504018ad1e6de12db19f5d59f6cc6d1246daaf
parentf888f927e67768b3f7d6384039728a1fcabc66f9 (diff)
downloadaur-1897d3ab3929cca2d9b3c80fac4bd03756977477.tar.gz
Update to mozc-2.25.4180.102 and mozc-ut-20201110
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD96
2 files changed, 57 insertions, 69 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 426988e9126a..caaecf95f320 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
pkgbase = mozc-ut
- pkgver = 2.23.2815.102.20200924
+ pkgver = 2.25.4180.102.20201110
pkgrel = 1
url = https://osdn.net/users/utuhiro/pf/utuhiro/files/
arch = i686
@@ -13,32 +13,32 @@ pkgbase = mozc-ut
makedepends = curl
makedepends = gtk2
makedepends = qt5-base
- makedepends = zinnia
makedepends = libxcb
makedepends = glib2
makedepends = bzip2
makedepends = unzip
- source = http://ftp.jp.debian.org/debian/pool/main/m/mozc/mozc_2.23.2815.102+dfsg.orig.tar.xz
- source = protobuf-3.5.2.tar.gz::https://github.com/protocolbuffers/protobuf/archive/v3.5.2.tar.gz
- source = https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/usage_dict.txt.patch
- source = https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/Fix-build-with-gcc8.patch
- source = https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/Change-from-python2-code-to-python3.patch
- source = https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/add_support_new_japanese_era.patch
- source = mozcdic-ut-20200924.1.tar.bz2::https://osdn.net/frs/chamber_redir.php?m=ymu&f=%2Fusers%2F26%2F26672%2Fmozcdic-ut-20200924.1.tar.bz2
- sha1sums = 7e0a39ffd5ea68ecadb792fc521c16b5be1f25cb
- sha1sums = d0c551031828ed9c07cc683762353a67b1a17627
- sha1sums = c6f5aac79c7e98fbda96de251d8f0d0787344ca9
- sha1sums = 4fe935b5c2d316119cf8957b6518b3b5e7bf6ecf
+ source = https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozc-2.25.4180.102.tar.bz2
+ source = abseil-cpp-20200923.1.tar.gz::https://github.com/abseil/abseil-cpp/archive/20200923.1.tar.gz
+ source = googletest-release-1.10.0.tar.gz::https://github.com/google/googletest/archive/release-1.10.0.tar.gz
+ source = japanese-usage-dictionary-master.zip::https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/master.zip
+ source = protobuf-3.13.0.tar.gz::https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz
+ source = https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
+ source = https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
+ source = mozcdic-ut-20201110.1.tar.bz2::https://osdn.net/frs/chamber_redir.php?m=ymu&f=%2Fusers%2F26%2F26897%2Fmozcdic-ut-20201110.1.tar.bz2
+ sha1sums = 96f5f005c8083533ba42c70570e85c5ca1a207a3
+ sha1sums = 824ae3a8fdd2c2bf2e667212e41312ffb2560640
+ sha1sums = 9c89be7df9c5e8cb0bc20b3c4b39bf7e82686770
+ sha1sums = bf15e8ff92cbde3c102cbf4ad50c2090a7165495
+ sha1sums = 2160cfb354148da3fb3891b267c2edc7e3eb5c30
sha1sums = SKIP
- sha1sums = 13f8fbbc768d5042fb55d877acf2a73fc8b5e3f0
sha1sums = SKIP
+ sha1sums = e91e7f67c48f59cd67787e5e6af98946e9a53b1c
pkgname = mozc-ut
pkgdesc = A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input) with Mozc UT Dictionary (additional dictionary)
arch = i686
arch = x86_64
depends = qt5-base
- depends = zinnia
conflicts = fcitx-mozc
conflicts = mozc
conflicts = fcitx-mozc-ut2
diff --git a/PKGBUILD b/PKGBUILD
index 4ca91bc726d1..e781e37740ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,14 @@
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
-# NOTE: This PKGBUILD is based on https://osdn.net/downloads/users/26/26669/mozcdic-ut-20200924.1.PKGBUILD/
+# NOTE: This PKGBUILD is based on https://osdn.net/downloads/users/26/26669/mozcdic-ut-20201110.1.PKGBUILD/
## Mozc compile option
_bldtype=Release
-_mozcver=2.23.2815.102
-_fcitxver=2.23.2815.102.1
-_utdicdate=20200924
+_mozcver=2.25.4180.102
+_fcitxver=20201110
+_utdicdate=20201110
pkgver=${_mozcver}.${_utdicdate}
pkgrel=1
@@ -18,84 +18,72 @@ pkgname=mozc-ut
arch=('i686' 'x86_64')
url="https://osdn.net/users/utuhiro/pf/utuhiro/files/"
license=('custom')
-makedepends=('clang' 'gyp' 'ninja' 'pkg-config' 'python' 'curl' 'gtk2' 'qt5-base' 'zinnia' 'libxcb' 'glib2' 'bzip2' 'unzip')
+makedepends=('clang' 'gyp' 'ninja' 'pkg-config' 'python' 'curl' 'gtk2' 'qt5-base' 'libxcb' 'glib2' 'bzip2' 'unzip')
source=(
- http://ftp.jp.debian.org/debian/pool/main/m/mozc/mozc_${_mozcver}+dfsg.orig.tar.xz
- protobuf-3.5.2.tar.gz::https://github.com/protocolbuffers/protobuf/archive/v3.5.2.tar.gz
- https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/usage_dict.txt.patch
- https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/Fix-build-with-gcc8.patch
- https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/Change-from-python2-code-to-python3.patch
- https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/add_support_new_japanese_era.patch
- "mozcdic-ut-${_utdicdate}.${pkgrel}.tar.bz2::https://osdn.net/frs/chamber_redir.php?m=ymu&f=%2Fusers%2F26%2F26672%2Fmozcdic-ut-${_utdicdate}.${pkgrel}.tar.bz2"
+ https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozc-${_mozcver}.tar.bz2
+ abseil-cpp-20200923.1.tar.gz::https://github.com/abseil/abseil-cpp/archive/20200923.1.tar.gz
+ googletest-release-1.10.0.tar.gz::https://github.com/google/googletest/archive/release-1.10.0.tar.gz
+ japanese-usage-dictionary-master.zip::https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/master.zip
+ protobuf-3.13.0.tar.gz::https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz
+ https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
+ https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
+ "mozcdic-ut-${_utdicdate}.${pkgrel}.tar.bz2::https://osdn.net/frs/chamber_redir.php?m=ymu&f=%2Fusers%2F26%2F26897%2Fmozcdic-ut-${_utdicdate}.${pkgrel}.tar.bz2"
)
sha1sums=(
- '7e0a39ffd5ea68ecadb792fc521c16b5be1f25cb'
- 'd0c551031828ed9c07cc683762353a67b1a17627'
- 'c6f5aac79c7e98fbda96de251d8f0d0787344ca9'
- '4fe935b5c2d316119cf8957b6518b3b5e7bf6ecf'
+ '96f5f005c8083533ba42c70570e85c5ca1a207a3'
+ '824ae3a8fdd2c2bf2e667212e41312ffb2560640'
+ '9c89be7df9c5e8cb0bc20b3c4b39bf7e82686770'
+ 'bf15e8ff92cbde3c102cbf4ad50c2090a7165495'
+ '2160cfb354148da3fb3891b267c2edc7e3eb5c30'
'SKIP'
- '13f8fbbc768d5042fb55d877acf2a73fc8b5e3f0'
'SKIP'
+ 'e91e7f67c48f59cd67787e5e6af98946e9a53b1c'
)
prepare() {
- cd mozc-${_mozcver}+dfsg
- mkdir -p src/third_party
- mv ${srcdir}/protobuf-3.5.2 src/third_party/protobuf
- patch -Np1 -i ${srcdir}/usage_dict.txt.patch
- patch -Np1 -i ${srcdir}/Fix-build-with-gcc8.patch
- patch -Np1 -i ${srcdir}/Change-from-python2-code-to-python3.patch
- patch -Np1 -i ${srcdir}/add_support_new_japanese_era.patch
-
- # Avoid fcitx5 build errors
- rm -rf src/unix/fcitx5/
+ cd mozc-${_mozcver}
+ rm -rf src/third_party
+ mkdir src/third_party
+ mv ${srcdir}/abseil-cpp-20200923.1 src/third_party/abseil-cpp
+ mv ${srcdir}/googletest-release-1.10.0 src/third_party/gtest
+ mv ${srcdir}/japanese-usage-dictionary-master src/third_party/japanese_usage_dictionary
+ mv ${srcdir}/protobuf-3.13.0 src/third_party/protobuf
+
+ # Add ZIP code
+ cd src/data/dictionary_oss/
+ PYTHONPATH="${PYTHONPATH}:../../" \
+ python ../../dictionary/gen_zip_code_seed.py \
+ --zip_code=${srcdir}/KEN_ALL.CSV --jigyosyo=${srcdir}/JIGYOSYO.CSV >> dictionary09.txt
+ cd -
+
+ # Avoid build errors
+ sed -i -e 's/-stdlib=libc++//' src/gyp/common.gypi
+ sed -i -e 's/-lc++//' src/gyp/common.gypi
# Add UT dictionary
cat ${srcdir}/mozcdic-ut-${_utdicdate}.${pkgrel}/mozcdic*-ut-*.txt >> src/data/dictionary_oss/dictionary00.txt
}
build() {
- cd mozc-${_mozcver}+dfsg/src
+ cd mozc-${_mozcver}/src
- _targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool renderer/renderer.gyp:mozc_renderer"
+ _targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool"
- GYP_DEFINES="use_libzinnia=1 document_dir=/usr/share/licenses/mozc" python build_mozc.py gyp --gypdir=/usr/bin --target_platform=Linux
+ GYP_DEFINES="document_dir=/usr/share/licenses/mozc" python build_mozc.py gyp --gypdir=/usr/bin --target_platform=Linux
python build_mozc.py build -c $_bldtype $_targets
}
package_mozc-ut() {
pkgdesc="A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input) with Mozc UT Dictionary (additional dictionary)"
arch=('i686' 'x86_64')
- depends=('qt5-base' 'zinnia')
+ depends=('qt5-base')
conflicts=('fcitx-mozc' 'mozc' 'fcitx-mozc-ut2' 'mozc-ut2' 'fcitx-mozc-neologd-ut' 'mozc-neologd-ut' 'fcitx-mozc-ut-unified' 'mozc-ut-unified')
- cd mozc-${_mozcver}+dfsg/src
+ cd mozc-${_mozcver}/src
install -D -m 755 out_linux/${_bldtype}/mozc_server "${pkgdir}/usr/lib/mozc/mozc_server"
install -m 755 out_linux/${_bldtype}/mozc_tool "${pkgdir}/usr/lib/mozc/mozc_tool"
install -d "${pkgdir}/usr/share/licenses/$pkgname/"
install -m 644 ../LICENSE data/installer/*.html "${pkgdir}/usr/share/licenses/${pkgname}/"
}
-
-package_fcitx-mozc-ut() {
- pkgdesc="Fcitx engine module for Mozc with Mozc UT Dictionary"
- arch=('i686' 'x86_64')
- depends=("mozc-ut=${pkgver}" 'fcitx')
- conflicts=('fcitx-mozc' 'fcitx-mozc-ut2' 'fcitx-mozc-neologd-ut' 'fcitx-mozc-ut-unified')
-
- cd mozc-${_mozcver}+dfsg/src
- for mofile in out_linux/${_bldtype}/gen/unix/fcitx/po/*.mo
- do
- filename=`basename $mofile`
- lang=${filename/.mo/}
- install -D -m 644 "$mofile" "${pkgdir}/usr/share/locale/$lang/LC_MESSAGES/fcitx-mozc.mo"
- done
-
- install -D -m 755 out_linux/${_bldtype}/fcitx-mozc.so "${pkgdir}/usr/lib/fcitx/fcitx-mozc.so"
- install -D -m 644 unix/fcitx/fcitx-mozc.conf "${pkgdir}/usr/share/fcitx/addon/fcitx-mozc.conf"
- install -D -m 644 unix/fcitx/mozc.conf "${pkgdir}/usr/share/fcitx/inputmethod/mozc.conf"
-
- install -d ${pkgdir}/usr/share/fcitx/mozc/icon
- install -m 644 ${srcdir}/fcitx-mozc-icons/*.png ${pkgdir}/usr/share/fcitx/mozc/icon/
-}