Package list mozc / bd9e627
Add d/ibus-mozc.install and update d/rules Moved some ibus-mozc features to d/ibus-mozc.install. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 8 months ago
2 changed file(s) with 10 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 #!/usr/bin/dh-exec --with-scripts=install-rename
1 # module
2 src/out_linux/Release/ibus_mozc => usr/lib/ibus-mozc/ibus-engine-mozc
3 # config files
4 src/out_linux/Release/gen/unix/ibus/mozc.xml usr/share/ibus/component/
6363 --template src/unix/fcitx5/org.fcitx.Fcitx5.Addon.Mozc.metainfo.xml.in \
6464 -o src/unix/fcitx5/org.fcitx.Fcitx5.Addon.Mozc.metainfo.xml
6565
66 # ibus-mozc
67 sed -i -e 's|/usr/libexec/ibus-engine-mozc|/usr/lib/ibus-mozc/ibus-engine-mozc|' \
68 -e 's|0\.0\.0\.0|$(SOURCE_VERSION)|g' \
69 src/out_linux_dynamic/Release/gen/unix/ibus/mozc.xml
70
6671 override_dh_auto_test:
6772 # cd src; python build_mozc.py runtests -c Debug
6873
8489 desktop-file-install --dir=$(CURDIR)/debian/mozc-utils-gui/usr/share/applications \
8590 $(CURDIR)/debian/ibus-setup-mozc-jp.desktop
8691
87 # ibus-mozc
88 install -D -m 0755 src/out_linux/Release/ibus_mozc \
89 $(CURDIR)/debian/ibus-mozc/usr/lib/ibus-mozc/ibus-engine-mozc
90 install -d $(CURDIR)/debian/ibus-mozc/usr/share/ibus/component/
91 sed -e 's|/usr/libexec/ibus-engine-mozc|/usr/lib/ibus-mozc/ibus-engine-mozc|' \
92 -e 's|0\.0\.0\.0|$(SOURCE_VERSION)|g' < \
93 src/out_linux/Release/gen/unix/ibus/mozc.xml > \
94 $(CURDIR)/debian/ibus-mozc/usr/share/ibus/component/mozc.xml
95
9692 override_dh_fixperms-arch:
9793 chmod -x debian/emacs-mozc/usr/share/emacs/site-lisp/emacs-mozc/mozc.el
9894 dh_fixperms