summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1189f0820226c239b86e77f234691a2eee3ec8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=dfu-convert-git
pkgver=r8.e2b1c1c
pkgrel=1
pkgdesc='Tool that converts RAW binary firmware into DFU format and back'
arch=(any)
url='https://github.com/plietar/dfuse-tool'
license=(unknown)
depends=(python2 python2-intelhex)
makedepends=(git)
source=(git://github.com/plietar/dfuse-tool)
sha512sums=('SKIP')

pkgver() {
  cd dfuse-tool
  echo r$(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd dfuse-tool
  install -D -m755 dfu-convert "$pkgdir"/usr/bin/dfu-convert
}