diff options
Diffstat (limited to 'testing/esptool/APKBUILD')
-rw-r--r-- | testing/esptool/APKBUILD | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/testing/esptool/APKBUILD b/testing/esptool/APKBUILD index 2fea5d551db..df6f1ba1de8 100644 --- a/testing/esptool/APKBUILD +++ b/testing/esptool/APKBUILD @@ -1,35 +1,43 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> -# Maintainer: +# Contributor: Michał Polański <michal@polanski.me> +# Maintainer: Michał Polański <michal@polanski.me> pkgname=esptool -pkgver=3.1 +pkgver=4.7.0 pkgrel=1 pkgdesc="ESP8266 and ESP32 serial bootloader utility" -options="!check" # tests require older version of pycodestyle -url="https://github.com/espressif/esptool" -arch="noarch" +url="https://docs.espressif.com/projects/esptool" license="GPL-2.0-or-later" -depends="python3 py3-pyserial py3-ecdsa py3-pyaes" -makedepends="py3-setuptools" -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/espressif/esptool/archive/v$pkgver.tar.gz" +arch="noarch" +depends=" + py3-bitstring + py3-cryptography + py3-ecdsa + py3-intelhex + py3-pyserial + py3-reedsolo + py3-yaml + " +makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel" +checkdepends="py3-elftools py3-pkcs11 py3-pytest py3-requests" +subpackages="$pkgname-pyc" +source="https://github.com/espressif/esptool/archive/v$pkgver/esptool-$pkgver.tar.gz" -prepare() { - default_prepare - sed "/\['wheel'\]/d" -i setup.py +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } -build() { - python3 setup.py build +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -m host_test } 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/ + python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" -5edaaa376932acc9e7ba717fe931ec1e14b80d1eee415fcef4c69b30b375cd61887ac52a20dd1001d215b8d739019d6b9f624d294d8d76ff112e630d52f7f15b esptool-3.1.tar.gz +dda2af5d9b2f8a4ec5706eaf58021e95094c152380c732074809c370a5d1bfaeb424cb27f69a3b980dec83ae9c4c9ee1eddfeb0a7990c3b1f1494160a2d369cc esptool-4.7.0.tar.gz " |