blob: 9f07ccca6b8087760336060428c06b4307c8b761 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001#!/bin/sh
Brad Bishopc342db32019-05-15 21:57:59 -04002#
3# SPDX-License-Identifier: MIT
4#
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6set -e
7
8if [ -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
13fi
14if [ -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
19fi