Last active
October 8, 2017 01:52
-
-
Save Tosainu/cdd562c5ae0c3af81147bad12acf52f6 to your computer and use it in GitHub Desktop.
mozc-ut2 をいい感じにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index ae6d149..1cd95c5 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -85,7 +85,7 @@ pkgrel=1 | |
arch=('i686' 'x86_64') | |
url="http://www.geocities.jp/ep3797/mozc-ut2.html" | |
license=('BSD' 'GPL' 'CC-BY-SA' 'custom') | |
-makedepends=('python2' 'ruby' 'git' 'ninja' 'clang' 'qt5-base') | |
+makedepends=('python2' 'ruby' 'git' 'ninja' 'clang' 'qt5-base' 'protobuf' 'unzip' 'zinnia') | |
source=( | |
mozc::git+https://github.com/google/mozc.git#commit=${_mozcrev} | |
http://downloads.sourceforge.net/project/pnsft-aur/mozc/mozcdic-ut2-${_utdicver}.tar.bz2 | |
@@ -126,7 +126,12 @@ prepare() { | |
cd "${srcdir}/mozc/" | |
- git submodule update --init --recursive | |
+ # https://github.com/google/mozc/issues/381#issuecomment-242965044 | |
+ sed -i 's/const bool kActivatedOnLaunch = false/const bool kActivatedOnLaunch = true/' src/unix/ibus/property_handler.cc | |
+ | |
+ git submodule update --init \ | |
+ src/third_party/gyp \ | |
+ src/third_party/japanese_usage_dictionary | |
cd "${srcdir}/mozcdic-ut2-${_utdicver}" | |
@@ -175,7 +180,7 @@ build() { | |
unset CC CC_host CC_target CXX CXX_host CXX_target LINK AR AR_host AR_target \ | |
NM NM_host NM_target READELF READELF_host READELF_target | |
- GYP_DEFINES="document_dir=/usr/share/licenses/${pkgbase}" \ | |
+ GYP_DEFINES="document_dir=/usr/share/licenses/${pkgbase} use_libprotobuf=1 use_libzinnia=1" \ | |
python2 build_mozc.py gyp | |
python2 build_mozc.py build -c $_bldtype $_targets | |
@@ -280,4 +285,4 @@ package_uim-mozc-ut2() { | |
# Global pkgdesc and depends are here so that they will be picked up by AUR | |
pkgdesc="Mozc the Japanese Input Method with Mozc UT2 Dictionary (additional dictionary) and uim-mozc (optional)" | |
-depends=('qt5-base' 'zinnia') | |
+depends=('protobuf' 'qt5-base' 'zinnia') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment