Masato Toyoshima: 1 testing/ibus-mozc: new aport 3 files changed, 97 insertions(+), 0 deletions(-)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3425/mbox | git am -3Learn more about email & git
https://github.com/phoepsilonix/mozc Mozc engine for IBus - Client of the Mozc input method --- testing/ibus-mozc/APKBUILD | 56 ++++++++++++++++++++++++++++ testing/ibus-mozc/abuild.sh | 18 +++++++++ testing/ibus-mozc/first-step-only.sh | 23 ++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 testing/ibus-mozc/APKBUILD create mode 100755 testing/ibus-mozc/abuild.sh create mode 100755 testing/ibus-mozc/first-step-only.sh diff --git a/testing/ibus-mozc/APKBUILD b/testing/ibus-mozc/APKBUILD new file mode 100644 index 0000000000..3b5a0d04a4 --- /dev/null +++ b/testing/ibus-mozc/APKBUILD @@ -0,0 +1,56 @@
You should have yourself as maintainer
+# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=ibus-mozc +pkgver=2.26.4248.102
pkgrel always starts at 0
+pkgrel=2 +pkgdesc="Mozc engine for IBus - Client of the Mozc input method" +url="https://github.com/phoepsilonix/mozc"
Don't need to be so verbose, just say 'librsvg not available in $arch'
+arch="all !s390x !mips !mips64" # ibus needs librsvg which isn't available on s390x +license="The BSD 3-Clause License" +depends="ibus" +makedepends=" + ibus-dev + qt5-qtbase-dev + gtk+2.0-dev + py3-core-api + ninja + pkgconf + git + gyp +"
Please use an actual URL
+source="$pkgname-$pkgver-r$pkgrel.tar.gz" +subpackages=""
Can't xvfb-run be used ?
+# mozc tests require a running X server +options="!check" + +build() {
Set the builddir= variable to the correct location
+ cd $srcdir/ibus-mozc/src + python3 build_mozc.py gyp --gypdir=/usr/bin + python3 build_mozc.py build -c Release package +} + +package() { + SRC=$srcdir/ibus-mozc/src/out_linux/Release + DATA=$srcdir/ibus-mozc/src/data/images/unix + + DST_LIB=$pkgdir/usr/lib/mozc + DST_DATA=$pkgdir/usr/share/ibus-mozc + + install -m 00755 -D $SRC/ibus_mozc /usr/lib/ibus-mozc/ibus-engine-mozc + install -m 00755 -D $SRC/mozc_renderer $DST_LIB/mozc_renderer + install -m 00755 $SRC/mozc_server $DST_LIB/mozc_server + install -m 00755 $SRC/mozc_tool $DST_LIB/mozc_tool + install -m 00644 -D $SRC/gen/unix/ibus/mozc.xml /usr/share/ibus/component/mozc.xml + + install -m 00644 -D $DATA/ui-alpha_full.png $DST_DATA/alpha_full.png + install -m 00644 $DATA/ui-alpha_half.png $DST_DATA/alpha_half.png + install -m 00644 $DATA/ui-dictionary.png $DST_DATA/dictionary.png + install -m 00644 $DATA/ui-direct.png $DST_DATA/direct.png + install -m 00644 $DATA/ui-hiragana.png $DST_DATA/hiragana.png + install -m 00644 $DATA/ui-katakana_full.png $DST_DATA/katakana_full.png + install -m 00644 $DATA/ui-katakana_half.png $DST_DATA/katakana_half.png + install -m 00644 $DATA/ime_product_icon_opensource-32.png $DST_DATA/product_icon.png + install -m 00644 $DATA/ui-properties.png $DST_DATA/properties.png + install -m 00644 $DATA/ui-tool.png $DST_DATA/tool.png + +} +sha512sums="248939e4403e9322beec08eb1ff58650878b434bf06ca7ce500ec4729b424444ab8f5a231934bcf5a3f8396c6dd72b2cf6631f9bc90fef9c3e1ab08be44a911c ibus-mozc-2.26.4248.102-r2.tar.gz"
I'm assuming the 2 files below should absolutely not be here
diff --git a/testing/ibus-mozc/abuild.sh b/testing/ibus-mozc/abuild.sh new file mode 100755 index 0000000000..791694effe --- /dev/null +++ b/testing/ibus-mozc/abuild.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# +pkgver=`awk "/pkgver=(.*)/" APKBUILD` +pkgrel=`awk "/pkgrel=(.*)/" APKBUILD` +pkgver=${pkgver#*=} +pkgrel=${pkgrel#*=} + +echo "Backup git repository, Before abuild" +echo "ibus-mozc-$pkgver-r$pkgrel.tar.gz" +tar czf ibus-mozc-$pkgver-r$pkgrel.tar.gz ibus-mozc || exit 1 + +echo "start abuild" +abuild checksum && abuild || exit 1 + +echo "abuild no error." +echo "you can find apk ~/packages/testing/x86_64/" + diff --git a/testing/ibus-mozc/first-step-only.sh b/testing/ibus-mozc/first-step-only.sh new file mode 100755 index 0000000000..62eb8e6233 --- /dev/null +++ b/testing/ibus-mozc/first-step-only.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# +[[ -d ./ibus-mozc ]] && echo "you have ibus-mozc directory.plaese ./abuild.sh" && exit 0 +echo "ibus-mozc for alpine linux edge" +echo "" +echo "original is https://github.com/google/mozc" +echo "source is no modified. build option is modified." +echo "because ninja(samu samurai)is not working." +echo "" +echo "Now:start shallow clone" +echo "git clone --branch alpine_edge --single-branch --depth 1 --recursive" +echo "git submodule update --init" + +pkgver=`awk "/pkgver=(.*)/" APKBUILD` +pkgver=${pkgver#*=} + +git clone --branch alpine_edge --single-branch --depth 1 --recursive \ + https://github.com/phoepsilonix/mozc ibus-mozc +git submodule update --init + +echo "done." + -- 2.30.0