aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thermald/APKBUILD
blob: 030dde9fa5963f139a8537e90a348cccfb6086d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: mellotron <mellotron@tutanota.com>
# Maintainer:
pkgname=thermald
pkgver=1.5.3
pkgrel=0
pkgdesc="Thermal daemon for IA"
url="https://github.com/01org/thermal_daemon"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="autoconf automake libtool dbus-glib-dev libxml2-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/01org/thermal_daemon/archive/v$pkgver.tar.gz
    thermald.initd"

builddir="$srcdir/thermal_daemon-$pkgver"
build() {
	cd "$builddir"
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/etc/init/

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
}
md5sums="66402236ed3c86a798029cb4d5313817  thermald-1.5.3.tar.gz
a1e252054ecdc987cf641df912b9a220  thermald.initd"
sha256sums="e20b450ef27a5b5e45474c831663c8f5ecd14c82ace5a4b1e06c442e0a23b53e  thermald-1.5.3.tar.gz
ec67b3bbdbdb2c65415b061594de7f7e757bea1c2de19f2022d4fac4aba1af26  thermald.initd"
sha512sums="aab4ade4dc50985cd5d45bcce6ea9b75cce22504eb113c86b8733c8be88a701c8812b8b0f3202f084a8128d50ec794ebe1c73312c0a5a5fd1dbc87eedf02df16  thermald-1.5.3.tar.gz
c4872ff38e8001b753b12759bcd11364581b12ff710fa1eac21d769fd62cb4ba1a01bd0ba4adec7a72b71be094a425b803239a56296e8c111426e08eb9917c70  thermald.initd"