# Template file for 'mbpfan'
pkgname=mbpfan
version=2.2.1
revision=1
archs="x86_64* i686*" # it's MacBook-specific and MacBooks only have these arches.
build_style=gnu-makefile
conf_files="/etc/mbpfan.conf"
short_desc="MacBook Pro fan control daemon"
maintainer="noah <nsawyer1993@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/dgraziotin/mbpfan"
distfiles="https://github.com/dgraziotin/mbpfan/archive/v${version}.tar.gz"
checksum=52a3a79d99f775fe90917a0958e527ea14ff5b83d010164bd91f7cc3ce046b6a

pre_build() {
	sed -i 's|/usr/sbin|/usr/bin|' Makefile
}

post_install() {
	vsv mbpfan
	vdoc "${FILESDIR}/README.voidlinux"
}
