summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36210e4555bf401cac096f2c8fa04001bd813c90 (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
# Maintainer: Marcin Kornat <rarvolt+aur@gmail.com>

pkgname=esptool2-git
pkgver=1
pkgrel=1
pkgdesc="An esp8266 rom creation tool"
arch=('i686' 'x86_64')
url="https://github.com/raburton/esptool2"
license=('GPL3')
depends=('glibc')
makedepends=('git')
source=(esptool2::git+https://github.com/raburton/esptool2.git)
md5sums=('SKIP')

version() {
	cd "esptool2"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "esptool2"
	make
}

package() {
	cd "$srcdir/esptool2"
	install -Dm755  esptool2 "${pkgdir}/usr/bin/esptool2"
}