git subrepo clone --branch=master https://aur.archlinux.org/mozc-ut-common.git
subrepo: subdir: "mozc-ut-common" merged: "07e5c3c" upstream: origin: "https://aur.archlinux.org/mozc-ut-common.git" branch: "master" commit: "07e5c3c" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
This commit is contained in:
parent
ea4cecc534
commit
d48cf06a13
28
mozc-ut-common/.SRCINFO
Normal file
28
mozc-ut-common/.SRCINFO
Normal file
@ -0,0 +1,28 @@
|
||||
pkgbase = mozc-ut-common
|
||||
pkgdesc = The Open Source edition of Google Japanese Input 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
|
||||
depends = qt5-base
|
||||
provides = mozc=2.26.4486.102
|
||||
provides = mozc-ut=2.26.4486.102.20210907
|
||||
conflicts = mozc
|
||||
conflicts = mozc-ut
|
||||
conflicts = mozc-ut2
|
||||
conflicts = mozc-neologd-ut
|
||||
conflicts = mozc-neologd-ut+ut2
|
||||
conflicts = mozc-ut-unified
|
||||
conflicts = mozc-ut-united
|
||||
source = mozc-ut-common-git::git+https://github.com/google/mozc.git#commit=7e8beed3ddad4f8d1065cbab52f24c16d31f5898
|
||||
source = https://osdn.net/downloads/users/32/32939/mozcdic-ut-20210907.tar.bz2
|
||||
sha256sums = SKIP
|
||||
sha256sums = 8a3642e12f26b63c93547a037e1910d1462863bc44c821fbe05a6f86197a5a93
|
||||
|
||||
pkgname = mozc-ut-common
|
12
mozc-ut-common/.gitrepo
Normal file
12
mozc-ut-common/.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/mozc-ut-common.git
|
||||
branch = master
|
||||
commit = 07e5c3c752fbe0ee8a9279c3f35398c2453436a8
|
||||
parent = ea4cecc53474df92bc30d0cabf4e8dae3f5ded05
|
||||
method = merge
|
||||
cmdver = 0.4.3
|
59
mozc-ut-common/PKGBUILD
Normal file
59
mozc-ut-common/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
||||
# 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='mozc-ut-common'
|
||||
pkgver=${_mozcver}.${_utdicver}
|
||||
pkgrel=1
|
||||
pkgdesc='The Open Source edition of Google Japanese Input bundled with the UT dictionary'
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://github.com/google/mozc'
|
||||
license=('custom')
|
||||
depends=('qt5-base')
|
||||
makedepends=('bazel' 'git' 'pkgconf' 'python-six')
|
||||
conflicts=('mozc' 'mozc-ut' 'mozc-ut2' 'mozc-neologd-ut' 'mozc-neologd-ut+ut2' 'mozc-ut-unified' 'mozc-ut-united')
|
||||
provides=("mozc=${_mozcver}" "mozc-ut=${_mozcver}.${_utdicver}")
|
||||
source=("${pkgname}-git::git+https://github.com/google/mozc.git#commit=${_commit}"
|
||||
"https://osdn.net/downloads/users/32/32939/mozcdic-ut-${_utdicver}.tar.bz2")
|
||||
sha256sums=('SKIP'
|
||||
'8a3642e12f26b63c93547a037e1910d1462863bc44c821fbe05a6f86197a5a93')
|
||||
|
||||
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
|
||||
|
||||
# Add the UT dictionary
|
||||
cat ${srcdir}/mozcdic-ut-${_utdicver}/mozcdic-ut-${_utdicver}.txt >> src/data/dictionary_oss/dictionary00.txt
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-git/src
|
||||
|
||||
env PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" bazel build server:mozc_server gui/tool:mozc_tool --config oss_linux --compilation_mode opt
|
||||
}
|
||||
|
||||
package() {
|
||||
#install -Dm644 mozcdic-ut-${_utdicver}/COPYING ${pkgdir}/usr/share/licenses/mozc/ut-dictionary
|
||||
|
||||
cd ${pkgname}-git/src
|
||||
|
||||
install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/mozc/mozc
|
||||
install -Dm644 data/installer/credits_en.html ${pkgdir}/usr/share/licenses/mozc/mozc-submodules
|
||||
|
||||
install -Dm755 bazel-bin/server/mozc_server ${pkgdir}/usr/lib/mozc/mozc_server
|
||||
install -Dm755 bazel-bin/gui/tool/mozc_tool ${pkgdir}/usr/lib/mozc/mozc_tool
|
||||
}
|
Loading…
Reference in New Issue
Block a user