-
-
Save a-andreyev/00b0e3bbb6f6e94e4484 to your computer and use it in GitHub Desktop.
arduino-cli PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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