Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | #!/bin/sh |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | set -e |
| 7 | |
| 8 | if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 ]; then |
| 9 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 \ |
| 10 | > $D${libdir}/gtk-2.0/2.10.0/immodules.cache && |
| 11 | sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache |
| 12 | chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache |
| 13 | fi |
| 14 | if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 ]; then |
| 15 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 \ |
| 16 | > $D${libdir}/gtk-3.0/3.0.0/immodules.cache && |
| 17 | sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache |
| 18 | chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache |
| 19 | fi |