summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11a66464410b6a4dbdeb35f5d4fb325b3bf5e006 (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
# Maintainer: Petr Kracik <petrkr@petrkr.net>

pkgname=mpremote
pkgver=1.22.0
pkgrel=1
pkgdesc="This CLI tool provides an integrated set of utilities to remotely interact with and automate a MicroPython device over a serial connection"
arch=('any')
url="https://docs.micropython.org/en/latest/reference/mpremote.html"
license=('MIT')
depends=(
	'python-pyserial'
)
makedepends=(
	'python-pip'
	'python-installer'
)

build() {
	cd "${srcdir}"
	# Clean up old builds (if any)
	rm -f *.whl
	/usr/bin/pip3 download --no-deps $pkgname==$pkgver
}

package() {
	/usr/bin/python3 -m installer --destdir="$pkgdir" ${srcdir}/*.whl
}