# Contributor: Sodface # Maintainer: Sodface pkgname=flashrom-chromium pkgver=20210520064119 _release="R92-13982.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=" 04806bd900ad8e4ec8f133361376259a61ec1eaf0cdfb6ae2fb6b565acbf8beeda998eed367be931a28b66995d9966bd9b0c42aedcb6c6e7c717b458f5e24bd3 release-R92-13982.B.tar.gz 371131e37ee0f2ce31b5dd264707b91817a2f0a3654943e6b3430df862d4bb64f27117c1c94276cb447f5b45f1771b9997f9c96423d68c6dd4565c1e1f442a5e musl-ffs.patch 809c015d49cd23e50ab24e939cd8c0a27ea2b1f99a2cfb1ae476fca5ada9a1e61ddfa725dc9ca4bc069acfc3f0d45a54303093efc3457e15ba215ff6b72c1ede fmap.h.patch "