18 lines
634 B
Bash
18 lines
634 B
Bash
# Template file for 'flashrom'
|
|
pkgname=flashrom
|
|
version=1.2
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="pciutils-devel libusb-compat-devel libftdi1-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]')
|
|
}
|