void-packages/srcpkgs/flashrom/template

31 lines
1.1 KiB
Bash

# Template file for 'flashrom'
pkgname=flashrom
version=1.4.0
revision=1
build_style=meson
configure_args="-Duse_internal_dmi=false -Ddocumentation=enabled"
hostmakedepends="pkg-config python3-Sphinx"
makedepends="pciutils-devel libusb-compat-devel libftdi1-devel eudev-libudev-devel zlib-devel libjaylink-devel"
depends="dmidecode"
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=b77ce458b3b874387270a71805e899ac63f057d7553dc320da7e4c58e750577c
make_check=no # can't run without special setup..?
flashrom-devel_package() {
depends="${sourcepkg}>=${version}_${revision} pciutils-devel
libusb-compat-devel libftdi1-devel eudev-libudev-devel zlib-devel
libjaylink-devel python3-Sphinx"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/share/doc
}
}