Skip to content

Instantly share code, notes, and snippets.

@a-andreyev
Last active August 29, 2015 14:26
Show Gist options
  • Save a-andreyev/00b0e3bbb6f6e94e4484 to your computer and use it in GitHub Desktop.
Save a-andreyev/00b0e3bbb6f6e94e4484 to your computer and use it in GitHub Desktop.
arduino-cli PKGBUILD
# Contributor : Devaev Maxim <[email protected]>
# Contributor : Alexey Andreyev <[email protected]>
pkgname=arduino-cli
pkgver=0.2
pkgrel=2
pkgdesc="CLI development tools for Arduino without Java and Arduino IDE"
arch=('any')
url="http://code.google.com/p/arduino-cli"
license="GPL"
depends=('avr-libc' 'avr-gсс' 'avr-binutils' 'avrdude' 'python2')
makedepends=('git')
conflicts=('arduino')
replaces=('arduino')
_gitroot="git://github.com/mdevaev/arduino-cli.git"
_gitname="arduino-cli"
build() {
cd $startdir/src
if [ -d $_gitname ]; then
msg "Updateing local repository..."
cd $_gitname
git pull origin master || return 1
msg "The local files are updated."
cd ..
else
git clone --branch=v$pkgver --depth=1 $_gitroot
fi
msg "Git clone done or server timeout"
msg "Starting make..."
rm -rf $_gitname-build
cp -r $_gitname $_gitname-build
}
package {
cd $_gitname-build
make DESTDIR=$pkgdir install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment