aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-20 13:54:34 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-20 13:54:34 +0100
commita06c619e70670378bb931330fbda34a240cba247 (patch)
tree1a54fb600c967dc840bfe30d52fe935d5e9507ab /testing
parent468c4802083b7cb367e7cbf35ebdc174b50b2b09 (diff)
downloadaports-a06c619e70670378bb931330fbda34a240cba247.tar.bz2
aports-a06c619e70670378bb931330fbda34a240cba247.tar.xz
testing/ampy: depend on py3-setuptools
Diffstat (limited to 'testing')
-rw-r--r--testing/ampy/APKBUILD19
1 files changed, 7 insertions, 12 deletions
diff --git a/testing/ampy/APKBUILD b/testing/ampy/APKBUILD
index 8cf8db46d8..3242b9d596 100644
--- a/testing/ampy/APKBUILD
+++ b/testing/ampy/APKBUILD
@@ -1,38 +1,33 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=ampy
pkgver=0.20171212
-pkgrel=2
+pkgrel=3
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=""
+depends="python3 py3-serial py3-click py3-setuptools"
subpackages="$pkgname-doc"
_commit="d3df5f57398c581f8a6c1b930b740fd7060e6833"
-source="https://github.com/adafruit/${pkgname}/archive/${_commit}/master.tar.gz"
+source="https://github.com/adafruit/ampy/archive/$_commit/master.tar.gz"
-builddir="${srcdir}/${pkgname}-${_commit}"
+builddir="$srcdir/$pkgname-$_commit"
prepare() {
- cd "$builddir"
touch CONTRIBUTING.md
}
build() {
- cd "$builddir"
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- cd "$builddir"
python3 setup.py install --prefix=/usr \
- --root="$pkgdir" || return 1
+ --root="$pkgdir"
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 CONTRIBUTING.md README.md \
- "$pkgdir"/usr/share/doc/$pkgname/ || return 1
+ "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="b075745030e924be6bc0eb83fbb2960f27932dd44399a8fe6ce1e54bfbb2bdeba9c159db1add337023327a86ca3808479873afc92ff99b9c024e244cb53bafd5 master.tar.gz"