# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=stm32flash
pkgver=0.7
pkgrel=0
pkgdesc="Flash STM32 ARM SoCs using built-in ST serial bootloader over UART or I2C"
url="https://sourceforge.net/p/stm32flash/wiki/Home/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/stm32flash/stm32flash-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
328254dd043dc707cf8c3edf8ddd4a9441c85d9cb2ca1682bcb3f5301d526b04ed6fb335e72a94e3d26341f18bef45968bf321f0ffeb80eaa0c3add6701349ff  stm32flash-0.7.tar.gz
"
