summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Cappelletti2020-05-12 08:02:41 +0200
committerLorenzo Cappelletti2020-05-12 22:13:41 +0200
commit47381d7575d4435e6312494073482595aa136da7 (patch)
tree087ed45f49fcbeb9b8cb4cc697bacdfb44d7264a
downloadaur-47381d7575d4435e6312494073482595aa136da7.tar.gz
v1710_5
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD48
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..33b1c025622
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = python-mbed-flasher
+ pkgdesc = mbed device flasher application
+ pkgver = 0.10.1
+ pkgrel = 1
+ url = https://github.com/ARMmbed/mbed-flasher
+ arch = any
+ license = Apache
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = python-mbed-flasher-0.10.1.tar.gz::https://github.com/ARMmbed/mbed-flasher/archive/v0.10.1.tar.gz
+ sha256sums = 5f31a63d47ad82c8a5168e1fe2cea5214ca121bdc2fad504947d894e704a01c6
+
+pkgname = python-mbed-flasher
+ depends = python
+ depends = python-pyserial
+ depends = python-mbed-ls
+ depends = python-six
+ optdepends = pyocd: for boards using PyOCD
+
+pkgname = python2-mbed-flasher
+ depends = python2
+ depends = python2-pyserial
+ depends = python2-mbed-ls
+ depends = python2-six
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..57fa220ae7d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+/*.tar.*
+/*.zip
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fdcd9be772f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Lorenzo Cappelletti <lorenzo.cappelletti gmail.com>
+
+pkgbase=python-mbed-flasher
+pkgname=('python-mbed-flasher' 'python2-mbed-flasher')
+pkgver=0.10.1
+pkgrel=1
+pkgdesc='mbed device flasher application'
+arch=('any')
+url='https://github.com/ARMmbed/mbed-flasher'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('5f31a63d47ad82c8a5168e1fe2cea5214ca121bdc2fad504947d894e704a01c6')
+
+package_python-mbed-flasher() {
+ depends=(
+ 'python'
+ # dependecies found via
+ # 'pip install mbed-flasher; pip show mbed-flasher'
+ 'python-pyserial'
+ 'python-mbed-ls'
+ 'python-six'
+ )
+ optdepends=(
+ 'pyocd: for boards using PyOCD' # flashers/FlasherPyOCD.py
+ )
+
+ cd "mbed-flasher-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+ python setup.py clean --all
+}
+
+package_python2-mbed-flasher() {
+ depends=(
+ 'python2'
+ # dependecies found via
+ # 'pip install mbed-flasher; pip show mbed-flasher'
+ 'python2-pyserial'
+ 'python2-mbed-ls'
+ 'python2-six'
+ )
+
+ cd "mbed-flasher-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+ python2 setup.py clean --all
+}
+
+# vim:set ts=2 sw=2 et: