# Contributor: mellotron # Maintainer: pkgname=thermald _pkgname=thermal_daemon pkgver=1.9.1 pkgrel=0 pkgdesc="Thermal daemon for IA" url="https://github.com/01org/thermal_daemon" arch="all !armhf !armv7 !aarch64 !s390x !mips !mips64" 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 no-werror.patch 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="7c16871316fb264abad9d0182cf8b6b5c1b4c747093672e74b7db2b6aa4f322fafdf6a94bfc8a11f427f7be2ee5e5691dc6a25bb5357ce45e7afe868f89b89e1 thermald-1.9.1.tar.gz ea8964b15fdebc2fb59e93c15b813b93691c2ba01689ac6080f1308a3063b23cba56b4539ccae87575689036f74300a1c22c9b0e77d4ecef9bc08198d7fe4892 thermald.initd ea72002dcdfa907964f2ffc28947d8b2b536a93876d65872085aa9ebf2bdb549fae9c43412d74590ad88d2d71c48067726cc755630c41e30d77eb9c0c56d7308 no-werror.patch 21168079e65253a1f4b762a1d4114400ff77d658f2f0ad4374f964033b9d8a2ec58ba8e65ca949add02945ba682ce8ff6e65ff27bfac6fa21e2d513c3898af0e ppc64le.patch"