# Contributor: Sodface # Maintainer: Sodface pkgname=flashrom-chromium pkgver=202207201621 _release="R105-14989.B" pkgrel=0 pkgdesc="A utility for identifying, reading, writing, verifying and erasing flash chips" url="https://chromium.googlesource.com/chromiumos/third_party/flashrom/" arch="all" license="GPL-2.0-or-later" depends="dmidecode" makedepends="pciutils-dev libusb-compat-dev linux-headers" subpackages="$pkgname-doc" install="$pkgname.post-install" options="!check" # no test suite source="https://chromium.googlesource.com/chromiumos/third_party/flashrom/+archive/refs/heads/release-$_release.tar.gz musl-ffs.patch fmap.h.patch " builddir="$srcdir" build() { make CONFIG_CH341A_SPI=yes PREFIX=/usr/ } package() { make PREFIX="$pkgdir/usr/" install } sha512sums=" 1c96144b92218f4ca23bc04a87a45cc4cbe45986da769791944280d11cbbe8483bf4e771f742b9440e5b329d3121ecdbbdea8ac2c19ea4ca877ce93513712767 release-R105-14989.B.tar.gz 371131e37ee0f2ce31b5dd264707b91817a2f0a3654943e6b3430df862d4bb64f27117c1c94276cb447f5b45f1771b9997f9c96423d68c6dd4565c1e1f442a5e musl-ffs.patch 1d074569068cdb95bdb6f755cdf7e09e861df1753efbe9d805595a58ca201b6fb7b83b0cc893df6d9e7a7ddae4992f9382c45d93bc4ab19d9508fd74cfe8205f fmap.h.patch "