void-packages/srcpkgs/flashrom/template

31 lines
977 B
Bash
Raw Normal View History

2013-04-11 15:19:33 +00:00
# Template file for 'flashrom'
pkgname=flashrom
2016-03-13 19:36:47 +00:00
version=0.9.9
revision=1
2015-06-02 18:55:01 +00:00
short_desc="Utility for reading, writing, erasing and verifying flash ROM chips"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-03-10 10:25:51 +00:00
makedepends="pciutils-devel libusb-compat-devel"
hostmakedepends="pkg-config"
2013-04-11 15:19:33 +00:00
homepage="http://www.flashrom.org"
2016-03-13 19:54:36 +00:00
license="GPL-2"
2013-04-11 15:19:33 +00:00
distfiles=http://download.flashrom.org/releases/$pkgname-$version.tar.bz2
2016-03-13 19:36:47 +00:00
checksum=cb3156b0f63eb192024b76c0814135930297aac41f80761a5d293de769783c45
2013-04-11 15:19:33 +00:00
2015-06-02 18:55:01 +00:00
post_extract() {
sed -i "s:sbin:bin:g" Makefile
}
2015-08-19 13:53:51 +00:00
do_configure() {
sed -i 's/u_int\([0-9]*\)_t/uint\1_t/' $(find -name '*.[ch]')
}
2013-04-11 15:19:33 +00:00
do_build() {
make PREFIX=/usr ${makejobs} \
CONFIG_INTERNAL=no CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_GFXNVIDIA=no CONFIG_SATASII=no \
CONFIG_ATAHPT=no CONFIG_DRKAISER=no CONFIG_NICREALTEK=no CONFIG_NICNATSEMI=no \
CONFIG_NICINTEL=no CONFIG_NICINTEL_SPI=no CONFIG_OGP_SPI=no CONFIG_SATAMV=no
}
do_install() {
make install DESTDIR=${DESTDIR} PREFIX=/usr
}