# Template file for 'flashrom'
pkgname=flashrom
version=1.0
revision=1
short_desc="Utility for reading, writing, erasing and verifying flash ROM chips"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
makedepends="pciutils-devel libusb-compat-devel"
hostmakedepends="pkg-config"
homepage="http://www.flashrom.org"
build_style=gnu-makefile
license="GPL-2"
distfiles=https://download.flashrom.org/releases/$pkgname-$version.tar.bz2
checksum=3702fa215ba5fb5af8e54c852d239899cfa1389194c1e51cb2a170c4dc9dee64

pre_build() {
	sed -i "s:sbin:bin:g" Makefile
	sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
}
