aboutsummaryrefslogtreecommitdiffstats
path: root/testing/esptool/APKBUILD
blob: 3d6fac4f8ec4341989e00229aaf67e5a089aabd4 (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
28
29
30
31
32
# Contributor: S├Âren Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=esptool
pkgver=2.2
pkgrel=0
pkgdesc="ESP8266 and ESP32 serial bootloader utility"
url="https://github.com/themadinventor/esptool"
arch="noarch"
license="GPLv2"
depends="python2 py-serial py-setuptools"
makedepends="python2-dev"
install=""
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"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr \
		--root="$pkgdir" || return 1

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 CONTRIBUTING.md README.md \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
}

sha512sums="eeac6ac3e1e188cfb012392a03b45e80c6634fc749c292c2ec8dfa3e4e07f47a2f6661c83652ed904bd389f819bbe219e17eea0aeeb55b29ff4b62e0a4ce52a2  esptool-2.2.tar.gz"