blob: 6298668ce5a811917b459f26ee00d93ba1554e9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=ampy
pkgver=0.20171212
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"
_commit="d3df5f57398c581f8a6c1b930b740fd7060e6833"
source="https://github.com/adafruit/${pkgname}/archive/${_commit}/master.tar.gz"
builddir="${srcdir}/${pkgname}-${_commit}"
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="b075745030e924be6bc0eb83fbb2960f27932dd44399a8fe6ce1e54bfbb2bdeba9c159db1add337023327a86ca3808479873afc92ff99b9c024e244cb53bafd5 master.tar.gz"
|