Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
17 lines
904 B
Bash
17 lines
904 B
Bash
#!/bin/sh
|
|
[ ! -e debian/hime/"$(pkg-config --variable=libdir gtk+-3.0)"/gtk-3.0/"$(pkg-config --variable=gtk_binary_version gtk+-3.0)"/immodules/im-hime.so ] && sed -i 's/, hime-gtk3-immodule//' debian/hime/DEBIAN/control
|
|
[ ! -e debian/hime/usr/lib/hime/chewing-module.so ] && sed -i 's/, libchewing3//' debian/hime/DEBIAN/control
|
|
|
|
if [ ! -e debian/hime/usr/lib/hime/anthy-module.so ]; then
|
|
grep -v 'Suggests: kasumi' debian/hime/DEBIAN/control | sed 's/, anthy//' >debian/hime/DEBIAN/control.in
|
|
mv debian/hime/DEBIAN/control.in debian/hime/DEBIAN/control
|
|
fi
|
|
|
|
if [ -x /usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 ]; then
|
|
/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 debian/hime/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so | grep hime | tail -n 1 >>debian/hime/usr/lib/gtk-2.0/2.10.0/immodule-files.d/hime.immodules
|
|
else
|
|
rm -fr debian/hime/usr/lib/gtk-2.0/2.10.0/immodule-files.d
|
|
fi
|
|
|
|
true
|