# Contributor: Sören Tempel # Maintainer: pkgname=esptool pkgver=2.8 pkgrel=1 pkgdesc="ESP8266 and ESP32 serial bootloader utility" url="https://github.com/espressif/esptool" arch="noarch" license="GPL-2.0-or-later" depends="python3 py3-serial py3-ecdsa py3-setuptools py3-pyaes" options="!check" # tests require older version of pycodestyle subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/espressif/esptool/archive/v$pkgver.tar.gz" build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -m644 CONTRIBUTING.md README.md \ "$pkgdir"/usr/share/doc/$pkgname/ } sha512sums="14528197e760779f3bf50e2a44d477979675dd42451fa405e2ae87502158b21f999fb94561980c9eb0634d2d1fd3729779b78266403de858ed1d32e8d29604cc esptool-2.8.tar.gz"