blob: 395516971e925fe9da814aab5b8a9444f23ec242 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001#!/bin/sh
2
3set -e
4
5if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 ]; then
6 PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-2.0 \
7 > $D${libdir}/gtk-2.0/2.10.0/immodules.cache &&
8 sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache
9 chown root:root $D${libdir}/gtk-2.0/2.10.0/immodules.cache
10fi
11if [ -x $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 ]; then
12 PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gtk-query-immodules-3.0 \
13 > $D${libdir}/gtk-3.0/3.0.0/immodules.cache &&
14 sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache
15 chown root:root $D${libdir}/gtk-3.0/3.0.0/immodules.cache
16fi