summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94c17dba136bd275f4743037fe1cea6d3ff22ff9 (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
pkgname="stm8flash-git"
_pkgname="stm8flash"
pkgver=a
pkgrel=1
pkgdesc="Utility for flashing STM8 MCU family via ST-LINK (V1 and V2)"
arch=('i686' 'x86_64')
url='https://github.com/vdudouyt/stm8flash'
license=('GPL2')
depends=('libusb')
makedepends=('git')
source=('git://github.com/vdudouyt/stm8flash.git')
md5sums=('SKIP')


pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_pkgname"
  make
}

package() {
  cd "$srcdir/$_pkgname"
  mkdir -p "$pkgdir/usr/bin"
 make DESTDIR="$pkgdir" install
}