# Contributor: Sören Tempel # Maintainer: setglobal pkgname = 'esptool' setglobal pkgver = '2.1' setglobal pkgrel = '0' setglobal pkgdesc = '"ESP8266 ROM Bootloader utility'" setglobal url = '"https://github.com/themadinventor/esptool'" setglobal arch = '"noarch'" setglobal license = '"GPLv2'" setglobal depends = '"python2 py-serial py-setuptools'" setglobal makedepends = '"python2-dev'" setglobal install = ''"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/themadinventor/$(pkgname)/archive/v$(pkgver).tar.gz"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir python2 setup.py build || return 1 } proc 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 } setglobal sha512sums = '"859807f0d457f34196c8e024fd2ff63ea1a45836cd03e13c625719e368fc5a616930b7700d9a91c0ddea4fc64b150b04f154c8cc12178cc5a9ce7f08375f151a esptool-2.1.tar.gz'"