pkgname: arduino-ide pkgver: '2.3.10' pkgrel: 1 pkgdesc: Arduino prototyping platform IDE, rewrite based on the Theia IDE framework. url: 'https://github.com/arduino/arduino-ide' arch: x86_64 depends: - fuse2 makedepends: - unzip source: - ${pkgname}.desktop - ${pkgname}.sh - 'https://raw.githubusercontent.com/arduino/arduino-ide/155f0aebaf0e4e77a80f33a3422856ae5d3ad8e7/electron-app/resources/icons/512x512.png' - 'https://github.com/arduino/${pkgname}/releases/download/${pkgver}/${pkgname}_${pkgver}_Linux_64bit.zip' sha256sums: - SKIP - SKIP - SKIP - SKIP hooks: post-install: | name=arduino-ide version=2.3.6 release=4 INFO="\033[1;36m" NORMAL="\033[0;39m" UN=dialout printf "${INFO} Your account needs to be part of the $UN group to be able to use arduino-ide: sudo usermod -a -G $UN ${NORMAL}\n" build: | install -dm755 ${PKGDIR}/{usr/{bin,lib},etc/modules-load.d} install -Dm644 ${pkgname}.desktop ${PKGDIR}/usr/share/applications/${pkgname}.desktop install -m755 ${pkgname}.sh ${PKGDIR}/usr/bin/${pkgname} install -Dm644 512x512.png \ ${PKGDIR}/usr/share/icons/hicolor/512x512/apps/arduino-ide-v2.png cp -a arduino-ide_${pkgver}_Linux_64bit ${PKGDIR}/usr/lib/${pkgname} echo "fuse" > ${PKGDIR}/etc/modules-load.d/${pkgname}.conf package: | true