void-packages/srcpkgs/flashrom/template
2019-04-23 19:00:10 -03:00

19 lines
659 B
Bash

# Template file for 'flashrom'
pkgname=flashrom
version=1.0.1
revision=1
wrksrc="flashrom-v${version}"
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="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.flashrom.org"
distfiles="https://download.flashrom.org/releases/${pkgname}-v${version}.tar.bz2"
checksum=d579f8dda5b69eeab55a658d59ffbe185443e4e8477e751aaf38c36468cede44
pre_build() {
sed -i "s:sbin:bin:g" Makefile
sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
}