From e0ed343f5a6f304cc509628e9131a9082184827b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= Date: Sun, 20 Nov 2022 02:24:00 +0000 Subject: [PATCH] ubuntukylin-default-settings: fix and tweak default settings --- helpers/make-ubuntukylin-default-settings | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 helpers/make-ubuntukylin-default-settings diff --git a/helpers/make-ubuntukylin-default-settings b/helpers/make-ubuntukylin-default-settings new file mode 100644 index 0000000..a705eb2 --- /dev/null +++ b/helpers/make-ubuntukylin-default-settings @@ -0,0 +1,42 @@ +#!/bin/sh +# +# Copyright (C) 2022 Luis Guzmán +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 +. ./config + +# Rebrand and tweak packages +replace ubuntu trisquel +replace Ubuntu Trisquel +find -type d |xargs rename s/ubuntu/trisquel/g +find -type f |xargs rename s/ubuntu/trisquel/g + +replace firefox abrowser +find -type d |xargs rename s/firefox/abrowser/g +find -type f |xargs rename s/firefox/abrowser/g + +# browser config +sed -i "s|browser.startup.homepage=.*\"|browser.startup.homepage=about:home\"|" debian/abrowser/trisquelkylin.cfg +sed -i "s|picture-filename=.*|picture-filename='/usr/share/backgrounds/nabia.jpg'|" debian/20_trisquelkylin-default-settings.gschema.override +#Restore default naming whike keeping the maintainer details. +sed -i '/trisquel.info/!s|trisquel|ubuntu|g' debian/control +sed -i '/github.com/s|Trisquel|Ubuntu|g' debian/control +sed -i 's|Trisquel Kylin|Kylin|g' debian/control + +changelog "Rebuild to drop non-available deprecated and non-free source packages." +compile