summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nagy2015-06-08 19:36:14 +0200
committerDaniel Nagy2015-06-08 19:36:14 +0200
commit0b09ebd0cb966d884ee6157611a8b367a173a782 (patch)
tree476fc1ba6c07acff256501289ad6c8c509a2ff99
downloadaur-0b09ebd0cb966d884ee6157611a8b367a173a782.tar.gz
import to aur4
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD31
-rw-r--r--fix-avrdude-conf.patch10
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..516ef1420a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = ino
+ pkgdesc = Command line toolkit for working with Arduino hardware
+ pkgver = 0.3.6
+ pkgrel = 8
+ url = http://inotool.org/
+ arch = any
+ license = MIT
+ depends = python2
+ depends = python2-pyserial
+ depends = python2-jinja
+ depends = python2-configobj
+ depends = python2-six
+ depends = arduino10
+ depends = picocom
+ depends = avrdude
+ options = !emptydirs
+ source = http://pypi.python.org/packages/source/i/ino/ino-0.3.6.tar.gz
+ source = fix-avrdude-conf.patch
+ source = cppoption1.patch::https://github.com/maharifu/ino/commit/e5be3c6779892514cf8fc491ed927d36f292a2f9.diff
+ md5sums = d2ca04f862ded04b19a5473467aff146
+ md5sums = cb70daaa535a5eb1d14f932014be70f4
+ md5sums = dfdf748eb0c8c349d2701008cc28be5d
+
+pkgname = ino
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e7c1272071b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Daniel Nagy <danielnagy at gmx de>
+# Contributor: Gary van der Merwe <garyvdm@gmail.com>
+
+pkgname=ino
+pkgver=0.3.6
+pkgrel=8
+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'
+ 'arduino10' 'picocom' 'avrdude')
+options=(!emptydirs)
+source=(http://pypi.python.org/packages/source/i/${pkgname}/${pkgname}-${pkgver}.tar.gz 'fix-avrdude-conf.patch'
+ 'cppoption1.patch::https://github.com/maharifu/ino/commit/e5be3c6779892514cf8fc491ed927d36f292a2f9.diff' )
+md5sums=('d2ca04f862ded04b19a5473467aff146'
+ 'cb70daaa535a5eb1d14f932014be70f4'
+ 'dfdf748eb0c8c349d2701008cc28be5d')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < "$srcdir/fix-avrdude-conf.patch"
+ patch -p1 < "$srcdir/cppoption1.patch"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/fix-avrdude-conf.patch b/fix-avrdude-conf.patch
new file mode 100644
index 00000000000..b8105fbb9a1
--- /dev/null
+++ b/fix-avrdude-conf.patch
@@ -0,0 +1,10 @@
+--- 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'])