# Contributor: mellotron # Maintainer: pkgname=thermald _pkgname=thermal_daemon pkgver=1.6 pkgrel=1 pkgdesc="Thermal daemon for IA" url="https://github.com/01org/thermal_daemon" arch="all !armhf !armv7 !aarch64 !s390x" license="GPL-2.0-or-later" makedepends="autoconf automake libtool dbus-glib-dev libxml2-dev linux-headers" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/01org/$_pkgname/archive/v$pkgver.tar.gz thermald.initd ppc64le.patch" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare ./autogen.sh } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/etc/init/ "$pkgdir"/etc/dbus-1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname } sha512sums="ddcd01dcd2f6b5666ffa16ba635734e4c146244b5df7c3f0deb8120f8ee7ebf1f4ee302d49db2b7e9a4950045650922977bd40bf6b38ccea9896f81e06df1d49 thermald-1.6.tar.gz ea8964b15fdebc2fb59e93c15b813b93691c2ba01689ac6080f1308a3063b23cba56b4539ccae87575689036f74300a1c22c9b0e77d4ecef9bc08198d7fe4892 thermald.initd 517d2c26dc5464c59e9c0cbea2bb1bcbe78cad87a26965cec8ec6d48a4b1bbb25c73bc5e772bbf0754e56222c8497d534b974b3a94c104bc4213be740aea9a5d ppc64le.patch"