From b5b7b3addb8cd9790608f99c221ca0e2e74f2165 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Fri, 29 Nov 2024 20:14:15 +0100 Subject: [PATCH] resources: dependencies: trisquel: skip fonts-unifont for Trisquel 10 (nabia). Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- resources/dependencies/trisquel | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/dependencies/trisquel b/resources/dependencies/trisquel index 531083f..469732f 100755 --- a/resources/dependencies/trisquel +++ b/resources/dependencies/trisquel @@ -108,7 +108,14 @@ install_packages libncurses5-dev doxygen acpica-tools gdb flex bison build-essen # GRUB build dependencies (also requires build-essential, bison and flex) # ------------------------------------------------------------ -install_packages fonts-unifont libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev libfont-freetype-perl automake autotools-dev build-essential bison flex libfuse-dev liblzma-dev gawk libdevmapper-dev libtool libfreetype6-dev unifont +# Trisquel 10 (nabia) doesn't have fonts-unifont. Also for the check +# we can assume that the 'nabia' code name is unique as it is in the +# upstream debootstrap in /usr/share/debootstrap/scripts/nabia. +if ! grep -q 'VERSION_CODENAME="nabia"' /etc/os-release ; then + install_packages fonts-unifont +fi + +install_packages libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev libfont-freetype-perl automake autotools-dev build-essential bison flex libfuse-dev liblzma-dev gawk libdevmapper-dev libtool libfreetype6-dev unifont # BucTS build dependencies (external script) # ------------------------------------------------------------