-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathorg.fcitx.Fcitx5.Addon.Mozc.yaml
57 lines (57 loc) · 2.15 KB
/
org.fcitx.Fcitx5.Addon.Mozc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
app-id: org.fcitx.Fcitx5.Addon.Mozc
branch: master
runtime: org.fcitx.Fcitx5
runtime-version: master
sdk: org.kde.Sdk//6.8
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18
build-extension: true
separate-locales: false
build-options:
prefix: /app/addons/Mozc
prepend-path: /usr/lib/sdk/llvm18/bin:/app/addons/Mozc/bin
prepend-pkg-config-path: /app/addons/Mozc/lib/pkgconfig
prepend-ld-library-path: /usr/lib/sdk/llvm18/lib
env:
- server_dir=/app/addons/Mozc/lib/mozc
- document_dir=/app/ime/mozc/licenses/mozc
- icons_dir=/app/share/icons/mozc
- LOCALE=C.UTF-8
- CC=clang
- CXX=clang++
cleanup:
- /bin
- /include
- /lib/pkgconfig
- '*.la'
modules:
- modules/bazel.yaml
- name: mozc
buildsystem: simple
subdir: src
build-commands:
- ../scripts/build_fcitx5_bazel --config release_build --distdir=$PWD/../bazel-deps
--registry=file:///$PWD/../bcr $(echo "${LDFLAGS}"|xargs -n1 echo "--linkopt")
&& PREFIX=${FLATPAK_DEST} ../scripts/install_server_bazel && PREFIX=${FLATPAK_DEST}
../scripts/install_fcitx5_bazel
sources:
- type: git
url: https://github.com/fcitx/mozc
branch: fcitx
disable-shallow-clone: true
- type: git
url: https://github.com/bazelbuild/bazel-central-registry
dest: bcr
branch: main
- mozc-deps.yaml
- type: shell
commands:
- sed -e "s|LINUX_MOZC_DOCUMENT_DIR = \(.*\)|LINUX_MOZC_DOCUMENT_DIR = \"${document_dir}\"|"
-e "s|LINUX_MOZC_SERVER_DIR = \(.*\)|LINUX_MOZC_SERVER_DIR = \"${server_dir}\"|"
-e "s|LINUX_MOZC_ICONS_DIR = \(.*\)|LINUX_MOZC_ICONS_DIR = \"${icons_dir}\"|"
-i src/config.bzl
- SHA256_ZIP_CODE_KEN_ALL=$(sha256sum bazel-deps/ken_all.zip | cut -d' ' -f1);
SHA256_ZIP_CODE_JIGYOSYO=$(sha256sum bazel-deps/jigyosyo.zip | cut -d' ' -f1);
sed -e "s|SHA256_ZIP_CODE_KEN_ALL = \(.*\)|SHA256_ZIP_CODE_KEN_ALL = \"${SHA256_ZIP_CODE_KEN_ALL}\"|"
-e "s|SHA256_ZIP_CODE_JIGYOSYO = \(.*\)|SHA256_ZIP_CODE_JIGYOSYO = \"${SHA256_ZIP_CODE_JIGYOSYO}\"|"
-i src/config.bzl src/MODULE.bazel