From c853ffb5b2f75f5a889ed2e3ef89b818a736e87a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:50:49 +0200 Subject: Adding upstream version 1.3+ds. Signed-off-by: Daniel Baumann --- snap/hooks/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 snap/hooks/configure (limited to 'snap/hooks') diff --git a/snap/hooks/configure b/snap/hooks/configure new file mode 100755 index 0000000..c9bdc26 --- /dev/null +++ b/snap/hooks/configure @@ -0,0 +1,14 @@ +#!/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 + +mkdir -p $SNAP_DATA/fontconfig + +echo "" > ${SNAP_DATA}/fontconfig/fonts.conf +echo "${SNAP_DATA}/fontconfig" >> ${SNAP_DATA}/fontconfig/fonts.conf +echo "/etc/fonts/fonts.conf" >> ${SNAP_DATA}/fontconfig/fonts.conf +echo "" >> ${SNAP_DATA}/fontconfig/fonts.conf + +export FONTCONFIG_FILE=${SNAP_DATA}/fontconfig/fonts.conf + +exec ${SNAP}/snap/command-chain/snapcraft-runner ${SNAP}/usr/bin/fc-cache --force --system-only --verbose -- cgit v1.2.3