summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd6cb6296b51b5bd2780511c7fb3317cbbe35451 (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
pkgname="stm8flash-git"
pkgver="20150517"
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=()
md5sums=()

build() {
	cd "${srcdir}"
	git clone https://github.com/vdudouyt/stm8flash
	cd "stm8flash"
	make
}

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