void-packages/srcpkgs/thermald/template
2019-12-15 16:54:56 +01:00

30 lines
838 B
Bash

# Template file for 'thermald'
pkgname=thermald
version=1.9.1
revision=1
_pkgname=thermal_daemon
archs="i686* x86_64*"
wrksrc="${_pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake pkg-config glib-devel"
makedepends="dbus-glib-devel libxml2-devel libglib-devel libgomp-devel"
short_desc="Linux Thermal Daemon program from 01.org"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="https://github.com/intel/${_pkgname}"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=aaf5ffdc12344eef2417b41b433094bb30e4ebf321f0140b090f97bfcf24ea1f
conf_files='/etc/thermald/*'
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" dbus-glib-devel" # for dbus-binding-tool
fi
pre_configure() {
sed -i '/-Werror/d' Makefile.am
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vsv thermald
}