mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 04:43:01 +01:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=fancontroled
|
|
pkgver=0.1
|
|
pkgrel=1
|
|
pkgdesc="a temperature dependent fan speed control"
|
|
url="http://fancontroled.lukaperkov.net/"
|
|
arch="all"
|
|
license="GPLv3"
|
|
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"
|