subrepo:
  subdir:   "ibus-mozc-ut"
  merged:   "07e7404"
upstream:
  origin:   "https://aur.archlinux.org/ibus-mozc-ut.git"
  branch:   "master"
  commit:   "07e7404"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
This commit is contained in:
Gabriel Ebner 2021-09-20 20:15:51 +02:00
parent 327cf72908
commit ea4cecc534
3 changed files with 107 additions and 0 deletions

23
ibus-mozc-ut/.SRCINFO Normal file

@ -0,0 +1,23 @@
pkgbase = ibus-mozc-ut
pkgdesc = Mozc module for IBus bundled with the UT dictionary
pkgver = 2.26.4486.102.20210907
pkgrel = 1
url = https://github.com/google/mozc
arch = i686
arch = x86_64
license = custom
makedepends = bazel
makedepends = git
makedepends = pkgconf
makedepends = python-six
makedepends = qt5-base
depends = ibus>=1.4.1
depends = mozc-ut-common
provides = ibus-mozc=2.26.4486.102
conflicts = ibus-mozc
conflicts = ibus-mozc-ut2
conflicts = ibus-mozc-ut-united
source = ibus-mozc-ut-git::git+https://github.com/google/mozc.git#commit=7e8beed3ddad4f8d1065cbab52f24c16d31f5898
sha256sums = SKIP
pkgname = ibus-mozc-ut

12
ibus-mozc-ut/.gitrepo Normal file

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = https://aur.archlinux.org/ibus-mozc-ut.git
branch = master
commit = 07e74047740ea7f49f3b03ae39438cb95e15b4ff
parent = 327cf72908326b207fb703540a0b8ea37ee763d0
method = merge
cmdver = 0.4.3

72
ibus-mozc-ut/PKGBUILD Normal file

@ -0,0 +1,72 @@
# Maintainer: Nocifer <apmichalopoulos at gmail dot com>
# Based on original PKGBUILD by: UTUMI Hirosi <utuhiro78 at yahoo dot co dot jp>
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
## The UT dictionary's project page: http://linuxplayers.g1.xrea.com/mozc-ut.html
## Helpful internal stuff
_commit=7e8beed3ddad4f8d1065cbab52f24c16d31f5898
_mozcver=2.26.4486.102
_utdicver=20210907
pkgname='ibus-mozc-ut'
pkgver=${_mozcver}.${_utdicver}
pkgrel=1
pkgdesc='Mozc module for IBus bundled with the UT dictionary'
arch=('i686' 'x86_64')
url='https://github.com/google/mozc'
license=('custom')
depends=('ibus>=1.4.1' 'mozc-ut-common')
makedepends=('bazel' 'git' 'pkgconf' 'python-six' 'qt5-base')
conflicts=('ibus-mozc' 'ibus-mozc-ut2' 'ibus-mozc-ut-united')
provides=("ibus-mozc=${_mozcver}")
source=("${pkgname}-git::git+https://github.com/google/mozc.git#commit=${_commit}")
sha256sums=('SKIP')
prepare() {
cd ${pkgname}-git
git submodule update --init --recursive
# Fix the Qt5 include path
sed -i -e 's/x86_64-linux-gnu\/qt5/qt/' src/config.bzl
# Fix the GLib include path
sed -i -e 's/x86_64-linux-gnu\/glib/glib/' src/BUILD.ibus.bazel
}
build() {
cd ${pkgname}-git/src
env PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" bazel build renderer:mozc_renderer unix/ibus:ibus_mozc unix/icons --config oss_linux --compilation_mode opt
}
package() {
cd ${pkgname}-git/src
install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/mozc/ibus-mozc
install -Dm644 data/installer/credits_en.html ${pkgdir}/usr/share/licenses/mozc/ibus-mozc-submodules
install -Dm755 bazel-bin/renderer/mozc_renderer ${pkgdir}/usr/lib/mozc/mozc_renderer
install -Dm755 bazel-bin/unix/ibus/ibus_mozc ${pkgdir}/usr/lib/ibus-mozc/ibus-engine-mozc
install -Dm644 bazel-bin/unix/ibus/mozc.xml ${pkgdir}/usr/share/ibus/component/mozc.xml
cd bazel-bin/unix
unzip -o icons.zip
install -Dm644 mozc.png ${pkgdir}/usr/share/ibus-mozc/product_icon.png
install -Dm644 alpha_full.svg ${pkgdir}/usr/share/ibus-mozc/alpha_full.svg
install -Dm644 alpha_half.svg ${pkgdir}/usr/share/ibus-mozc/alpha_half.svg
install -Dm644 direct.svg ${pkgdir}/usr/share/ibus-mozc/direct.svg
install -Dm644 hiragana.svg ${pkgdir}/usr/share/ibus-mozc/hiragana.svg
install -Dm644 katakana_full.svg ${pkgdir}/usr/share/ibus-mozc/katakana_full.svg
install -Dm644 katakana_half.svg ${pkgdir}/usr/share/ibus-mozc/katakana_half.svg
install -Dm644 outlined/dictionary.svg ${pkgdir}/usr/share/ibus-mozc/dictionary.svg
install -Dm644 outlined/properties.svg ${pkgdir}/usr/share/ibus-mozc/properties.svg
install -Dm644 outlined/tool.svg ${pkgdir}/usr/share/ibus-mozc/tool.svg
}