Skip to content

Instantly share code, notes, and snippets.

@chmue
Created April 18, 2014 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmue/11062670 to your computer and use it in GitHub Desktop.
Save chmue/11062670 to your computer and use it in GitHub Desktop.
--- ino-0.3.6/ino/commands/upload.py 2013-09-23 19:27:44.000000000 +0200
+++ ino-0.3.6-fix-avrdude/ino/commands/upload.py 2014-04-18 15:18:54.395558631 +0200
@@ -42,6 +42,7 @@ class Upload(Command):
conf_places = self.e.arduino_dist_places(['hardware', 'tools'])
conf_places.append('/etc/avrdude') # fallback to system-wide conf on Fedora
+ conf_places.append('/etc') # fallback to system-wide conf on Arch
self.e.find_file('avrdude.conf', places=conf_places)
else:
self.e.find_arduino_tool('avrdude', ['hardware', 'tools', 'avr', 'bin'])
# Creator: Gary van der Merwe <garyvdm@gmail.com>
pkgname=ino
pkgver=0.3.6
pkgrel=3
pkgdesc="Command line toolkit for working with Arduino hardware"
arch=(any)
url="http://inotool.org/"
license=('MIT')
depends=('python2' 'python2-pyserial' 'python2-jinja' 'python2-configobj' 'python2-six'
'arduino' 'picocom' 'avrdude')
options=(!emptydirs)
source=(http://pypi.python.org/packages/source/i/${pkgname}/${pkgname}-${pkgver}.tar.gz 'fix-avrdude-conf.patch')
md5sums=('d2ca04f862ded04b19a5473467aff146' 'cb70daaa535a5eb1d14f932014be70f4')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 < "$srcdir/fix-avrdude-conf.patch"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment