aboutsummaryrefslogtreecommitdiffstats
path: root/testing/esptool/APKBUILD
blob: 31faeab1f3a7afeac6ceec63708e9ecdf20b78d2 (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
28
29
30
31
32
33
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=esptool
pkgver=2.4.1
pkgrel=0
pkgdesc="ESP8266 and ESP32 serial bootloader utility"
url="https://github.com/themadinventor/esptool"
arch="noarch"
license="GPL-2.0"
depends="python3 py3-serial"
makedepends="python3-dev py-setuptools"
options="!check" # tests require older version of pycodestyle
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/themadinventor/${pkgname}/archive/v${pkgver}.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	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="1e58593bd7bc55f067e628c6d826d9b434c6149fa3f82e627d96d13c4cc28ba070f3aeb85b801cf302c53125fb2a71b8e9a8af1de0171a6e224758e2662d3541  esptool-2.4.1.tar.gz"