void-packages/srcpkgs/flashrom/template

19 lines
619 B
Bash

# Template file for 'flashrom'
pkgname=flashrom
version=1.2
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="pciutils-devel libusb-compat-devel"
short_desc="Utility for reading, writing, erasing and verifying flash ROM chips"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.flashrom.org"
distfiles=https://github.com/flashrom/flashrom/archive/v$version.tar.gz
checksum=a5bac412cefb87bb426912fed46ccc38799d088a9b92dbe7bac38c5df016d9b2
pre_build() {
vsed -i "s:sbin:bin:g" Makefile
vsed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
}