blob: 6c8b1ab72ee507ee7510c8adaa2c543de21a96ea (
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.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="859807f0d457f34196c8e024fd2ff63ea1a45836cd03e13c625719e368fc5a616930b7700d9a91c0ddea4fc64b150b04f154c8cc12178cc5a9ce7f08375f151a esptool-2.1.tar.gz"
|