Skip to content

Commit

Permalink
Add KiCad 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Feb 20, 2024
1 parent 27f5fe1 commit 3de9961
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/KiCad/credits
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Botspot
14 changes: 14 additions & 0 deletions apps/KiCad/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Electronics Design Automation Suite - newer than what is available from APT
On PiOS Bookworm, only KiCad 6 is available from apt. KiCad 7 has a number of improvements over KiCad 6:
- Custom fonts
- Drag and drop
- Command line interface
- Layout enhancements
- Smarter algorothms and crash reporting
- Much more at https://www.kicad.org/blog/2023/02/Version-7.0.0-Released/

To run: Menu -> Other -> KiCad
To run in a terminal: kicad

Note: If you are using PiOS Bullseye, only KiCad 5.1.9 is available from APT but Pi-Apps will install KiCad 6.0.11.
If you are still on PiOS Buster or Ubuntu, Pi-Apps will install the default version available from the repositories.
Binary file added apps/KiCad/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/KiCad/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions apps/KiCad/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

if [ "$(get_codename)" == bookworm ];then
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
install_packages -t bookworm-backports kicad || exit 1
elif [ "$(get_codename)" == bullseye ];then
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
install_packages -t bullseye-backports kicad || exit 1
else
#unknown OS version, so just install kicad from main repo
install_packages kicad || exit 1
fi

10 changes: 10 additions & 0 deletions apps/KiCad/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#Allow packages required by this app to be uninstalled
purge_packages || exit 1

if [ "$(get_codename)" == bookworm ];then
remove_repofile_if_unused /etc/apt/sources.list.d/bookworm-backports.list
elif [ "$(get_codename)" == bullseye ];then
eremove_repofile_if_unused /etc/apt/sources.list.d/bullseye-backports.list
fi
1 change: 1 addition & 0 deletions apps/KiCad/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.kicad.org/
1 change: 1 addition & 0 deletions etc/categories
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Inkscape|Creative Arts
Intellij IDEA|Programming
jGRASP IDE|Programming
KeePassXC|Tools
KiCad|Engineering
Kodi|Multimedia
Kolourpaint|Creative Arts
Krita|Creative Arts
Expand Down

5 comments on commit 3de9961

@Botspot
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theofficialgman, right now this does nothing special for Ubuntu or non-debian.
Would it be easy to implement ubuntu backports repos to this script, or with a conversion table would it be safe to set up bookworm-backports on ubuntu?

@theofficialgman
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kicad has an official Ubuntu PPA. https://www.kicad.org/download/details/ubuntu/
There are buildings 7.X for 20.04 and up (on the currently supported Ubuntu releases).

However only amd64 is enabled on it. I've had success with other maintainers enabling arm64 on the ppa (in most cases it is just clicking a checkbox and re-uploading). You should send a message asking for that.

You can also create a launchpad account, create a PPA, and copy the official PPA packages and see if they can be built on arm64 without any changes. I have gone ahead and done that now on my launchpad so we will see what happens in a few hours.

Would it be easy to implement ubuntu backports repos to this script

No because kicad isn't available in Ubuntu backports repos. As always, check packages.ubuntu.com https://packages.ubuntu.com/jammy/kicad . If it was available you would see a -backports under the relevant dists. Backports are community contributed and many developers choose to maintain PPAs instead (as seen above).

Would it be easy to implement ubuntu backports repos to this script, or with a conversion table would it be safe to set up bookworm-backports on ubuntu?

I'm not comfortable with that for the same reasons stated previously.

@theofficialgman
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also always the flatpak (for arm64 and amd64), that is maintained and supported by KiCad https://www.kicad.org/download/linux/

@theofficialgman
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARMhf and ARM64 builds completed at launchpad but both failed 1 test so the package isn't published
I suggest you send the links upstream as part of your request

https://launchpad.net/~theofficialgman/+archive/ubuntu/kicad-7.0-releases-arm/+sourcepub/15807159/+listing-archive-extra
https://launchpad.net/~theofficialgman/+archive/ubuntu/kicad-7.0-releases-arm/+sourcepub/15807175/+listing-archive-extra

this is likely the results of a kicad bug.

@Botspot
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have forwarded this info to the dev I am in email contact with. Thank you.

Please sign in to comment.