blob: 88c9b3ec076bcc9dc6af9f9c089067fd9c74ab8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: SuperNinja_4965
# Contributor: FabioLolix
# Contributor: netroy
pkgname=arduino-ide-bin
pkgver=2.3.3
pkgrel=1
pkgdesc="Arduino prototyping platform IDE, rewrite based on the Theia IDE framework."
arch=(x86_64)
url="https://github.com/arduino/arduino-ide"
license=(AGPL3)
depends=(libxkbfile libxss nss libsecret git)
optdepends=('libusb: Needed for some libraries or boards'
'usbutils: Needed for stm32 boards using st-link'
'libusb-compat: Needed for the `micronucleus` cli utility'
'python-pyserial: Needed for esptool')
provides=(arduino-ide)
conflicts=(arduino-ide)
replaces=(arduino-ide-beta-bin)
options=(!strip)
source=("https://github.com/arduino/arduino-ide/releases/download/${pkgver}/arduino-ide_${pkgver}_Linux_64bit.zip"
"https://www.arduino.cc/wiki/370832ed4114dd35d498f2f449b4781e/arduino.svg"
"${pkgname}.sh")
sha256sums=('400315a3020f5dcc1dd979fba182f9867f2379de00cc99b098b8eb06dce0eaba'
'4137981bcb4057c2e0092f22faea287767f102e0b48497d22cd55e8d6988e4ac'
'c02f0c40b92e50f46b09339d1ccfb0cb7cd7caa1e5d386ee9b85938810bfda34')
prepare() {
echo -e "[Desktop Entry]\nType=Application\nName=Arduino IDE v2\nGenericName=Arduino IDE v2\nComment=Open-source electronics prototyping platform\nExec=arduino-ide %U\nIcon=arduino-ide-v2\nTerminal=false\nMimeType=text/x-arduino;\nCategories=Development;IDE;Electronics;\nKeywords=embedded electronics;avr;microcontroller;\nStartupWMClass=Arduino IDE" > arduino-ide-v2.desktop
}
package() {
install -dm755 "$pkgdir/opt/"
mv "arduino-ide_${pkgver}_Linux_64bit" "arduino-ide"
chmod -R 755 "arduino-ide"
cp -r "arduino-ide" "$pkgdir/opt/arduino-ide"
install -dm755 "$pkgdir/usr/bin"
install -Dm644 "arduino-ide-v2.desktop" "$pkgdir/usr/share/applications/arduino-ide-v2.desktop"
install -Dm644 "arduino.svg" "$pkgdir/usr/share/pixmaps/arduino-ide-v2.svg"
install -m755 "${srcdir}/${pkgname}.sh" "$pkgdir/usr/bin/arduino-ide"
}
|