summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c13de9bfb2fb8f6fa3a1a2114442c56aa4bb4028 (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
30
31
32
# Maintainer: Benjamin Hodgetts <ben@xnode.org>
# Contributor: Andrey Tkachenko <andreytkachenko64@gmail.com>

_pkgname=stm32flash
pkgname=stm32flash-ex-git
pkgver=r351.5ad1f87
pkgrel=1
pkgdesc='Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C (fixed)'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url='http://git.code.sf.net/p/stm32flash/code'
license=('GPLv2')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git://git.code.sf.net/p/stm32flash/code")
sha512sums=('SKIP')

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

build() {
	cd $_pkgname
	make
}

package() {
	# executable
	cd $_pkgname
	install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
}