summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 682eb0f672c4cc1688f7d43bf3cda8b097a167c7 (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.24.1
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
}