arduino: devendor desktop file

This commit is contained in:
classabbyamp 2024-06-07 01:02:02 -04:00
parent e63f172f47
commit 7088bf9c81
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
2 changed files with 5 additions and 13 deletions

View File

@ -1,11 +0,0 @@
[Desktop Entry]
Name=Arduino
GenericName=Arduino IDE
Comment=The open-source Arduino environment
TryExec=arduino
Exec=arduino %U
Icon=arduino
Type=Application
Terminal=false
MimeType=text/x-arduino;
Categories=Development;

View File

@ -1,7 +1,7 @@
# Template file for 'arduino'
pkgname=arduino
version=1.8.19
revision=2
revision=3
archs="x86_64* i686* aarch64* arm*"
create_wrksrc=yes
build_wrksrc=Arduino-$version
@ -47,6 +47,9 @@ do_build() {
-e "s#\(tools\.avrdude\.config\.path=\).*#\1/etc/avrdude.conf#" \
linux/work/hardware/arduino/avr/platform.txt
convert linux/work/lib/arduino_icon.ico icon.png
mv linux/dist/desktop.template arduino.desktop
vsed -i -e 's/<BINARY_LOCATION>/arduino %U/' -e 's/<ICON_NAME>/arduino/' arduino.desktop
}
do_install() {
@ -62,5 +65,5 @@ do_install() {
;;
esac
done
vinstall ${FILESDIR}/arduino.desktop 644 usr/share/applications
vinstall build/arduino.desktop 644 usr/share/applications
}