aboutsummaryrefslogtreecommitdiffstats
path: root/testing/esptool/APKBUILD
blob: c5a76d776416bd219a091eea50b7332a0c28ae1f (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
34
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=esptool
pkgver=1.1
pkgrel=2
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
}

md5sums="9e0c14ced8182adf33808e5a80d7b88e  esptool-1.1.tar.gz"
sha256sums="c059fea707d1fb05ac3febf1dd6e5a74a8fbb42168bced15a079a228b292c30d  esptool-1.1.tar.gz"
sha512sums="869c073cdd2e58f93e3731de28582e57351e22d326cf88eb7f8014f399c2ed1c33ab94607eea60e0dd0f46527f878d69af61db2c9990f956c695e52dadf5cbe8  esptool-1.1.tar.gz"