summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4701bdad0c36c79a6da638260aa3e59457e261c3 (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"
  git rev-parse --short HEAD # Fix to better comply with github display
}

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

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