diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /snap/hooks/configure | |
parent | Initial commit. (diff) | |
download | inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'snap/hooks/configure')
-rwxr-xr-x | snap/hooks/configure | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/snap/hooks/configure b/snap/hooks/configure new file mode 100755 index 0000000..cbd76dd --- /dev/null +++ b/snap/hooks/configure @@ -0,0 +1,19 @@ +#!/bin/sh -e +# Small hook to build a system font cache in the Snap's system directory +# SPDX-License-Identifier: GPL-2.0-or-later + +export SNAP_DESKTOP_RUNTIME=${SNAP}/gnome-platform + +mkdir -p $SNAP_DATA/fontconfig + +echo "<fontconfig>" > ${SNAP_DATA}/fontconfig/fonts.conf +echo "<cachedir>${SNAP_DATA}/fontconfig</cachedir>" >> ${SNAP_DATA}/fontconfig/fonts.conf +echo "<include ignore_missing=\"yes\">/etc/fonts/fonts.conf</include>" >> ${SNAP_DATA}/fontconfig/fonts.conf +if [ ! -z $SNAP_DESTKOP_RUNTIME ]; then +echo "<include ignore_missing=\"yes\">${SNAP_DESKTOP_RUNTIME}/etc/fonts/fonts.conf</include>" >> ${SNAP_DATA}/fontconfig/fonts.conf +fi +echo "</fontconfig>" >> ${SNAP_DATA}/fontconfig/fonts.conf + +export FONTCONFIG_FILE=${SNAP_DATA}/fontconfig/fonts.conf + +exec ${SNAP}/snap/command-chain/snapcraft-runner ${SNAP_DESKTOP_RUNTIME}/usr/bin/fc-cache --force --system-only --verbose |