From 81c84e677817a761b50cbab1b769cffb75780e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= Date: Sat, 12 Oct 2024 07:28:11 +0000 Subject: [PATCH] desktop-file-utils: remove unnecessary package helper. --- helpers/make-desktop-file-utils | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/helpers/make-desktop-file-utils b/helpers/make-desktop-file-utils index 814c509..320db81 100644 --- a/helpers/make-desktop-file-utils +++ b/helpers/make-desktop-file-utils @@ -1,7 +1,6 @@ #!/bin/sh # -# Copyright (C) 2011 Rubén Rodríguez -# Copyright (C) 2021 Pablo Correa Gómez +# Copyright (C) 2024 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 @@ -18,13 +17,29 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=2 +# Placeholder helper, remove or update according latest removal policy on new distro. +VERSION=0 +BUILD_UNTIL=12.0 . ./config -#% Replace default applications in /usr/share/applications/defaults.list (makes icecat appear in gnome-default-applications-properties) -sed 's/firefox/abrowser/g; s/snap-store_ubuntu-software-local-file/gdebi/g; s/banshee/vlc.desktop/g;' -i debian/defaults.list +# Lower version and remove trisquel suffix to prevent update issues on further actions. +export FULLVERSION="$(sed "s|trisquel$VERSION||" <<< $FULLVERSION)" +new_build=$(( ${FULLVERSION: -1} - 1 )) +export FULLVERSION=("${FULLVERSION%?}$new_build") -changelog "Rebranded for Trisquel" +# Deprecated helper + +# Custom changelog. +changelog(){ +head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME +[ "$SECURITY" = true ] && REPO=${CODENAME}-security +[ "$BACKPORT" = true ] || [ "$BACKPORTS" = true ] && REPO=${CODENAME}-backports +echo | dch -b -D $REPO -v $FULLVERSION "$1" +# Make sure the changelog file is identical between archs +/bin/sed "/-- Trisquel/s/.*/ -- Trisquel GNU\/Linux developers $DATE/" -i debian/changelog +} + +changelog "Set lower version on placeholder package." package