diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run new file mode 100644 index 0000000000..de5b6d5c3e --- /dev/null +++ b/srcpkgs/thermald/files/thermald/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check dbus >/dev/null || exit 1 +exec thermald --no-daemon --dbus-enable 2>&1 diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template new file mode 100644 index 0000000000..23ac15a67d --- /dev/null +++ b/srcpkgs/thermald/template @@ -0,0 +1,28 @@ +# Template file for 'thermald' +pkgname=thermald +version=1.4.2 +revision=1 +_pkgname=thermal_daemon +wrksrc="${_pkgname}-${version}" +only_for_archs="i686 i686-musl x86_64 x86_64-musl" +build_style=gnu-configure +hostmakedepends="automake pkg-config" +makedepends="dbus-glib-devel libxml2-devel glib-devel libgomp-devel" +short_desc="The Linux Thermal Daemon program from 01.org" +maintainer="Andrea Brancaleoni " +license="GPL-2" +homepage="https://github.com/01org/${_pkgname}" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=4be5e1105f8b24af17d19357eda97b6edd3d74284c3ee762060d487158997f8b +conf_files=" +/etc/thermald/thermal-conf.xml +/etc/thermald/thermal-cpu-cdev-order.xml" + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +post_install() { + rm -r ${DESTDIR}/etc/init + vsv thermald +}