blob: 4d04858b432fdd4c9c6e0ba26a7395600ba4b843 (
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
47
48
49
50
51
52
53
54
55
56
57
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fancontroled
pkgver=0.1
pkgrel=2
pkgdesc="A temperature dependent fan speed control"
url="http://fancontroled.lukaperkov.net/"
arch="all"
license="GPL3"
depends=""
makedepends="lm_sensors-dev"
install=""
subpackages=""
source="http://code.lukaperkov.net/fancontroled/fancontroled-$pkgver.tar
link.patch
fancontroled.confd
fancontroled.initd
"
_builddir="$srcdir"/fancontroled-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/sbin
make install DESTDIR="$pkgdir" || return 1
install -Dm644 "$srcdir"/fancontroled.confd \
"$pkgdir"/etc/conf.d/fancontroled || return 1
install -Dm755 "$srcdir"/fancontroled.initd \
"$pkgdir"/etc/init.d/fancontroled || return 1
}
md5sums="8c3a7efa99e58216ad4633d1e6ed1358 fancontroled-0.1.tar
099a824ba948f1f01da8d374024357fd link.patch
3b9e5e1557ad4877e23f88411e8b84f0 fancontroled.confd
b7e49fce1d8182559b808b1ce3b60e7b fancontroled.initd"
sha256sums="94b4602dfb913a846e2f40dd87e7085cddb5cd622a46744198a8abde2dcf44b4 fancontroled-0.1.tar
985490bb1c79cac191b160fe79f0f4d461cdea71d8f16c06b5a21d6613b1949a link.patch
3b9cc54a16bda45e81874966fa11b866a167f5cd2538da4b275899bc57d739b4 fancontroled.confd
18e780d5454c2de16641c758e5aeb1e1442eddfe03338230a5e14ba420d468be fancontroled.initd"
sha512sums="cd59b8db8d44798be31693138dcebe261a684e4a10fc08ffb24488d8d5a9eac6f827e82cf3632509acf91c461308c279fae70f40237d7fe9f48b480ce1cb56bd fancontroled-0.1.tar
6be24b0445ad2b3e6e7331192e1caba16fa8aa649a6e945ae5fb88d90f38310b4945216ee63facb9c817d1894f90959f056eff65956d7a1bdf5971400f0f7e4a link.patch
250637ce329d6d28ad801980563eb756b20aa222ca5ad5c8e79f5df51ac154a3ab1577d157e031f1a38409caabbf03e5900992177318393d4b32bbb87599d9ec fancontroled.confd
4784ad205f719338d23b3e5fe8515c51aa8ceb2a892f7ae05e668a1f2e61f425d195186bd321b13d7ac78a502401ed563d41f226411af09d2e3451b6dbd32ace fancontroled.initd"
|