diff options
author | Naoya Inada | 2021-03-30 17:04:58 +0900 |
---|---|---|
committer | Naoya Inada | 2021-05-28 20:47:00 +0900 |
commit | d37a66301ea82a7123abe0688660433d24efc2d4 (patch) | |
tree | 5c2f9c685a791eb5f0998349c67cc3446f475e83 /PKGBUILD | |
parent | 182284518b9ebe0b847aa11efbd0e7a686741c4f (diff) | |
download | aur-d37a66301ea82a7123abe0688660433d24efc2d4.tar.gz |
Update to mozc-2.26.4381.102 and mozc-ut-20210524
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -3,15 +3,15 @@ # 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/30/30219/fcitx-mozc-ut-20210421.1.PKGBUILD +# NOTE: This PKGBUILD is based on https://osdn.net/downloads/users/30/30473/fcitx-mozc-ut-20210524.1.PKGBUILD # Mozc compile option _bldtype=Release -_mozcver=2.26.4346.102 +_mozcver=2.26.4381.102 _fcitxver=20210329 _iconver=20201229 -_utdicver=20210421 +_utdicver=20210524 pkgver=${_mozcver}.${_utdicver} pkgrel=1 @@ -36,13 +36,13 @@ source=( ) sha256sums=( - 'e17bf2fe008290268a633fca8bbac10c01eed674f3815e5078b0e6f53cb62b6e' + '4ee389b22aa171f9730e2de68e9231a22cd82b709f1b5c81984b6ead6158b281' 'bf3f13b13a0095d926b25640e060f7e13881bd8a792705dd9e161f3c2b9aa976' '9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb' '9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a' 'b8c0e65b3e3f8cff8e35a8e044158d78bd534a3a64389cd98256b2a1b4f232ed' '7985e6e8c4f4f45f8d040e54715c90b54cd51bb86f6a97fa3bdb17b2137e927d' - '690237f82e6eda05c9dd8cf303dfe6cd94358b2518e92f36a029afd524efe9b1' + '32563ddc71a50716f907452bed600caa236db7271a7f3966a42df1be6d10a4ae' ) prepare() { @@ -54,7 +54,7 @@ prepare() { mv ${srcdir}/protobuf-3.13.0 src/third_party/protobuf patch -Np1 -i ${srcdir}/fcitx-mozc-${_fcitxver}.patch - # use libstdc++ instead of libc++ + # Use libstdc++ instead of libc++ sed "/stdlib=libc++/d;/-lc++/d" -i src/gyp/common.gypi } @@ -63,23 +63,28 @@ build() { _targets="unix/fcitx/fcitx.gyp:fcitx-mozc unix/fcitx/fcitx.gyp:gen_fcitx_mozc_i18n" - GYP_DEFINES="document_dir=/usr/share/licenses/mozc" python build_mozc.py gyp --gypdir=/usr/bin --target_platform=Linux + GYP_DEFINES="enable_gtk_renderer==0" python build_mozc.py gyp --gypdir=/usr/bin --target_platform=Linux python build_mozc.py build -c $_bldtype $_targets } package() { cd mozc-${_mozcver}/src + install -d ${pkgdir}/usr/share/licenses/$pkgname/ + install -m 644 ../LICENSE data/installer/*.html ${pkgdir}/usr/share/licenses/${pkgname}/ 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" + 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 -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/doc/${pkgname}/ + cp {../AUTHORS,../LICENSE,../README.md} ${pkgdir}/usr/share/doc/${pkgname}/ install -d ${pkgdir}/usr/share/fcitx/mozc/icon install -m 644 ${srcdir}/fcitx-mozc-icons-${_iconver}/*.png ${pkgdir}/usr/share/fcitx/mozc/icon/ |