# Contributor: mellotron # Maintainer: pkgname=thermald _pkgname=thermal_daemon pkgver=2.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 autoconf-archive" 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="407d743d2799f84cd178e17ef694f0825f03db4ce80a47df95826bc26a9f142b80295905707fcba41bd5268d411a03478cd9d432545f9e2f1394d7d61539e169 thermald-2.1.tar.gz ea8964b15fdebc2fb59e93c15b813b93691c2ba01689ac6080f1308a3063b23cba56b4539ccae87575689036f74300a1c22c9b0e77d4ecef9bc08198d7fe4892 thermald.initd c93c5dd84d175e3fd513c228fdba75cb9e5268dfbc9f6452e407b7e4561ee0a56f49a816378ac7cba9c81cb6f5ad094dff7ac43c9c0e7fa31ad9b5e4894dfc36 no-werror.patch 21168079e65253a1f4b762a1d4114400ff77d658f2f0ad4374f964033b9d8a2ec58ba8e65ca949add02945ba682ce8ff6e65ff27bfac6fa21e2d513c3898af0e ppc64le.patch"