# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>

pkgname=sigrok-firmware-fx2lafw-bin
replaces="${pkgname%-bin}"
pkgver=0.1.7
pkgrel=0
pkgdesc="Open source firmware for logic analyzers based on Cypress FX2 chips"
url="https://sigrok.org/wiki/Fx2lafw"
arch="noarch"
license="GPL-2.0-or-later"
# Using prebuild firmware, as required toolchain is not (yet) available on
# Alpine Linux
source="https://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-$pkgver.tar.gz"
# No checks possible, as firmware runs on the logic analyzer
options="!check"

package() {
	mkdir -p "$pkgdir/usr/share/sigrok-firmware"
	find . -type f -name '*.fw' \
			-exec cp {} "$pkgdir/usr/share/sigrok-firmware" \;
}

sha512sums="60faac29198532bd5e03e44ed7f89c1502c83c6cf60ec5cc0f3ae9891c45b5de55eba5304c47d3231c8222ff61f1425aed88a44e7ff89d30b75d6e5faf7a623c  sigrok-firmware-fx2lafw-bin-0.1.7.tar.gz"
