diff options
author | Naoya Inada | 2020-12-31 02:04:27 +0900 |
---|---|---|
committer | Naoya Inada | 2020-12-31 02:04:27 +0900 |
commit | 68208a145afb90b3ba23ed957427ad6c3753418c (patch) | |
tree | 7fbbf175017be58d89b3b8c5fc2070523293acb1 /PKGBUILD | |
parent | 0954fb619ba9ca5004f43b0780f35529410e281b (diff) | |
download | aur-68208a145afb90b3ba23ed957427ad6c3753418c.tar.gz |
Update to mozc-2.26.4237.102 and mozc-ut-20201229
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -3,22 +3,27 @@ # 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/26962/fcitx-mozc-ut-2.26.4206.102.20201129.1.PKGBUILD/ +# NOTE: This PKGBUILD is based on https://osdn.net/downloads/users/27/27012/fcitx-mozc-ut-2.26.4237.102.20201229.1.PKGBUILD ## Mozc compile option _bldtype=Release -_mozcver=2.26.4206.102 +_mozcver=2.26.4237.102 _fcitxver=20201111 -_utdicdate=20201129 -pkgver=${_mozcver}.${_utdicdate} +_iconver=20201229 +_utdicver=20201229 +pkgver=${_mozcver}.${_utdicver} pkgrel=1 +_pkgbase=mozc pkgname=fcitx-mozc-ut -arch=('i686' 'x86_64') +pkgdesc="Fcitx engine module for Mozc with Mozc UT Dictionary" +arch=('x86_64') url="https://osdn.net/users/utuhiro/pf/utuhiro/files/" license=('custom') +depends=('fcitx' 'qt5-base') makedepends=('clang' 'gyp' 'ninja' 'pkg-config' 'python' 'curl' 'gtk2' 'qt5-base' 'fcitx' 'libxcb' 'glib2' 'bzip2' 'unzip') +conflicts=('fcitx-mozc' 'fcitx-mozc-ut2' 'fcitx-mozc-neologd-ut' 'fcitx-mozc-ut-unified') source=( https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozc-${_mozcver}.tar.bz2 @@ -26,18 +31,18 @@ source=( googletest-release-1.10.0.tar.gz::https://github.com/google/googletest/archive/release-1.10.0.tar.gz protobuf-3.13.0.tar.gz::https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz https://osdn.net/users/utuhiro/pf/utuhiro/dl/fcitx-mozc-${_fcitxver}.patch - https://osdn.net/users/utuhiro/pf/utuhiro/dl/fcitx-mozc-icons.tar.gz - https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozcdic-ut-${_utdicdate}.${pkgrel}.tar.bz2 + https://osdn.net/users/utuhiro/pf/utuhiro/dl/fcitx-mozc-icons-${_iconver}.tar.gz + https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozcdic-ut-${_utdicver}.${pkgrel}.tar.bz2 ) sha1sums=( - 'a6bd5f40b623aef4e77c20fdcc208ba7ee75e1ee' + 'b0b8fbf69f0d6089a800533a99be747e40faf922' '1dd3f0a937c3678437646d26ca6784bd6a9b2b26' '9c89be7df9c5e8cb0bc20b3c4b39bf7e82686770' '2160cfb354148da3fb3891b267c2edc7e3eb5c30' '38de276494e299dc7e4816dfd95403fd0fdf8601' - 'e930c580ecd0c9e0cecb57d148122c9122d4859c' - 'eb6fc52789044238b81596479107239e491c4f25' + '3d9da92eed88817985e0047daf7a7cc2131a3bb4' + 'f248798642153122628b41c62a7329c9be4f8e52' ) prepare() { @@ -49,9 +54,8 @@ prepare() { mv ${srcdir}/protobuf-3.13.0 src/third_party/protobuf patch -Np1 -i ${srcdir}/fcitx-mozc-${_fcitxver}.patch - # Avoid build errors - sed -i -e 's/-stdlib=libc++//' src/gyp/common.gypi - sed -i -e 's/-lc++//' src/gyp/common.gypi + # use libstdc++ instead of libc++ + sed "/stdlib=libc++/d;/-lc++/d" -i src/gyp/common.gypi } build() { @@ -63,13 +67,9 @@ build() { python build_mozc.py build -c $_bldtype $_targets } -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') - +package() { cd mozc-${_mozcver}/src + for mofile in out_linux/${_bldtype}/gen/unix/fcitx/po/*.mo do filename=`basename $mofile` @@ -82,5 +82,5 @@ package_fcitx-mozc-ut() { 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/ + install -m 644 ${srcdir}/fcitx-mozc-icons-${_iconver}/*.png ${pkgdir}/usr/share/fcitx/mozc/icon/ } |