aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ampy
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2017-07-04 19:34:13 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-07-07 11:01:17 +0000
commit718dab76d54eabb6b771488ef17c97f0c1f5e374 (patch)
treebe929ecba49336d41d1d8f8260e0ff2626e9986f /testing/ampy
parentaa71fa48d99589cd187a65417ded63ca50d1b9bd (diff)
downloadaports-718dab76d54eabb6b771488ef17c97f0c1f5e374.tar.bz2
aports-718dab76d54eabb6b771488ef17c97f0c1f5e374.tar.xz
testing/ampy: new aport
Utility to interact with a MicroPython board over a serial connection https://github.com/adafruit/ampy
Diffstat (limited to 'testing/ampy')
-rw-r--r--testing/ampy/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/ampy/APKBUILD b/testing/ampy/APKBUILD
new file mode 100644
index 0000000000..9647640219
--- /dev/null
+++ b/testing/ampy/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+pkgname=ampy
+pkgver=0.20170704
+pkgrel=0
+pkgdesc="Utility to interact with a MicroPython board over a serial connection"
+url="https://github.com/adafruit/ampy"
+arch="noarch"
+license="MIT"
+depends="python3 py3-serial py3-click py-setuptools"
+makedepends="python3-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/adafruit/${pkgname}/archive/master.zip"
+
+builddir="$srcdir/$pkgname-master"
+
+prepare() {
+ cd "$builddir"
+ touch CONTRIBUTING.md
+}
+
+build() {
+ cd "$builddir"
+ python3 setup.py build || return 1
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr \
+ --root="$pkgdir" || return 1
+
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+ install -m644 CONTRIBUTING.md README.md \
+ "$pkgdir"/usr/share/doc/$pkgname/ || return 1
+}
+
+sha512sums="eb73d5a7cd385860de0b341dc344ba26478dbbd68385718c96025ddbf3c831487ef039fe44b1bced46409bcee31fd4a8f3343de69489545e2aa069c363b1b368 master.zip"