aboutsummaryrefslogtreecommitdiffstats
path: root/testing/esptool/APKBUILD
blob: 606fa7c90c7056ac94f54d5979c61b878af046e8 (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=esptool
pkgver=3.0
pkgrel=0
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="b522d30b11e9ab4e426009116bf1872e587116b7a3b517f841d34d3e860f6454345be89a2e28b8eef5aa5e59318e991504697644a3f4f90d7e63c037025716eb  esptool-3.0.tar.gz"