Skip to content

Instantly share code, notes, and snippets.

@gardar
Created January 5, 2020 03:44
Show Gist options
  • Save gardar/ae84296131dda3501d1578d9eef4e577 to your computer and use it in GitHub Desktop.
Save gardar/ae84296131dda3501d1578d9eef4e577 to your computer and use it in GitHub Desktop.
arduino-pro-ide archlinux aur
post_install() {
echo "
You need to have a valid arduino-cli.yaml config present. You can generate one with
arduino-cli config init
And then you must provide two additional settings in the config:
sketchbook_path:
arduino_data:
To configure manually you can place the following example under ~/.arduino15/arduino-cli.yaml
board_manager:
additional_urls: []
daemon:
port: "50051"
directories:
data: /home/USERNAME/.arduino15
downloads: /home/USERNAME/.arduino15/staging
user: /home/USERNAME/Arduino
sketchbook_path: /home/USERNAME/Arduino/SKETCHES
arduino_data: /home/USERNAME/.arduino15
logging:
file: ""
format: text
level: info
"
}
# Maintainer: skuroedov <skuroedov@email.cz>
# Contributor: gardar <aur@gardar.net>
pkgname=arduino-pro-ide
pkgver=0.0.3
pkgrel=1
pkgdesc="The Arduino Pro IDE bring features that address the needs of advanced users whilst retaining continuity with the simple "classic" Arduino IDE."
arch=('x86_64')
depends=('libxss' 'gtk3' 'nodejs-lts-dubnium' 'nss' 'libxkbfile' 'python')
makedepends=('gendesk' 'ruby-ronn' 'git')
optdepends=('arduino-cli')
url="https://github.com/arduino/$pkgname"
license=('EPLv2')
install="$pkgname.install"
source=("$pkgname-$pkgver-alpha.preview-linux64.tar.xz"::"https://downloads.arduino.cc/$pkgname/$pkgname-$pkgver-alpha.preview-linux64.tar.xz" "git+git://github.com/arduino/$pkgname.git")
sha256sums=('4207a7c7dda8875685cda56191ab7e053ccb051dae4c5b40319a9bc704a747f8' 'SKIP')
prepare() {
gendesk -f --pkgname "$pkgname" --name "Arduino Pro IDE" --pkgdesc "$pkgdesc"
ronn -r --manual=$pkgname "$pkgname/README.md"
}
package() {
install -dm755 "$pkgdir/opt/"
chmod -R 755 "Arduino Pro IDE-v$pkgver-linux"
cp -r "Arduino Pro IDE-v$pkgver-linux" "$pkgdir/opt/$pkgname"
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -Dm 644 "$pkgname/README" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment