19 lines
617 B
Bash
19 lines
617 B
Bash
# Template file for 'flashrom'
|
|
pkgname=flashrom
|
|
version=1.1
|
|
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=b9bb67331bdde70d1f73c07fe770f32eb6dc8990ba87a10ee14ea8f722a3f810
|
|
|
|
pre_build() {
|
|
sed -i "s:sbin:bin:g" Makefile
|
|
sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
|
|
}
|