blob: 96476402190b1d300eba3b74f11fb6c0b4789ef6 (
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
|
# 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"
|