aboutsummaryrefslogtreecommitdiffstats
path: root/testing/esptool/APKBUILD
blob: 5441ea8588068223cf92a6e4e6bdd262174b4f06 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=esptool
pkgver=2.0.1
pkgrel=0
pkgdesc="ESP8266 ROM 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="bbb5fcb448ac8c5d00e8c50475c6981c9720578429ce6fb6d52d02e2c203a702e25166622536f2516f566a2d374abbbf3a2a1fcad455215d33d1e65a1f69aa1d  esptool-2.0.1.tar.gz"