From 825670f2830d37a51d9757f41e70b73de266d316 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Sat, 25 Jul 2020 16:06:46 -0400
Subject: [PATCH] ubuntu-mate-settings: remove ubuntu font dependency

---
 helpers/make-ubuntu-mate-settings | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/helpers/make-ubuntu-mate-settings b/helpers/make-ubuntu-mate-settings
index 4d7280e6..2ebadaeb 100644
--- a/helpers/make-ubuntu-mate-settings
+++ b/helpers/make-ubuntu-mate-settings
@@ -17,10 +17,18 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=2
+VERSION=3
 
 . ./config
 
+replace "Ubuntu MATE" "Trisquel" .
+sed '/font/s/Ubuntu/Sans/' -i \
+usr/share/ubuntu-mate/settings-overlay/config/Trolltech.conf \
+usr/share/ubuntu-mate/settings-overlay/config/tilda/config_0 \
+usr/share/ubuntu-mate/settings-overlay/config/smplayer/smplayer.ini
+
+sed 's/Ubuntu-MATE/Trisquel/; /font/s/Ubuntu/Sans/' -i usr/share/glib-2.0/schemas/30_ubuntu-mate.gschema.override
+
 cat << EOF > usr/share/applications/mate-mimeapps.list
 [Default Applications]
 x-scheme-handler/apt=apturl.desktop;
@@ -85,6 +93,8 @@ EOF
 rm debian/indicator-session.desktop.in
 sed '/indicator-session.desktop/d' -i usr/lib/ubuntu-mate/ubuntu-mate-settings-overlay debian/ubuntu-mate-default-settings.install debian/rules
 
+sed '/fonts-ubuntu/d' -i debian/control
+
 changelog "Customized for Trisquel"
 
 compile
-- 
GitLab