Skip to content

Commit eb9c120

Browse files
KiCad: fix installation on Raspbian and use flathub install for non-bookworm 64bit systems
closes #2766
1 parent b1c0cf4 commit eb9c120

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

apps/KiCad/install

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#!/bin/bash
22

33
if [ "$(get_codename)" == bookworm ];then
4+
install_packages http://http.us.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2025.1_all.deb || exit 1
5+
if [ $arch == 32 ]; then
6+
install_packages http://http.us.debian.org/debian/pool/main/g/glew/libglew2.2_2.2.0-4+b1_armhf.deb || exit 1
7+
fi
48
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware" | sudo tee /etc/apt/sources.list.d/bookworm-backports.list >/dev/null
59
install_packages -t bookworm-backports kicad kicad-libraries || exit 1
6-
elif [ "$(get_codename)" == bullseye ];then
7-
echo 'deb http://deb.debian.org/debian bullseye-backports main contrib non-free' | sudo tee /etc/apt/sources.list.d/bullseye-backports.list >/dev/null
8-
install_packages -t bullseye-backports kicad kicad-libraries || exit 1
10+
elif [ $arch == 64 ]; then
11+
# install kicad from flathub
12+
install_packages flatpak || exit 1
13+
flatpak_install org.kicad.KiCad || exit 1
914
else
10-
#unknown OS version, so just install kicad from main repo
15+
# not a 64bit system or bookworm so install kicad from debian repos
1116
install_packages kicad kicad-libraries || exit 1
1217
fi
13-

apps/KiCad/uninstall

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
#!/bin/bash
22

33
#Allow packages required by this app to be uninstalled
4-
purge_packages || exit 1
5-
64
if [ "$(get_codename)" == bookworm ];then
5+
purge_packages || exit 1
76
remove_repofile_if_unused /etc/apt/sources.list.d/bookworm-backports.list
87
elif [ "$(get_codename)" == bullseye ];then
9-
eremove_repofile_if_unused /etc/apt/sources.list.d/bullseye-backports.list
8+
purge_packages || exit 1
9+
remove_repofile_if_unused /etc/apt/sources.list.d/bullseye-backports.list
10+
elif [ $arch == 64 ]; then
11+
flatpak_uninstall org.kicad.KiCad || exit 1
12+
purge_packages || exit 1
13+
else
14+
purge_packages || exit 1
1015
fi

0 commit comments

Comments
 (0)