blob: d9a38ed85241784b861c36a8d0699662d1251165 (
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
|
# Maintainer: onyxdigitaldev <dev@onyxdigital.dev>
pkgname=tp-fanctl-git
pkgver=r3.4054632
pkgrel=1
pkgdesc='Adaptive fan controller for ThinkPad laptops — auto-switches quiet/gaming profiles based on CPU load (git version)'
arch=('any')
url='https://github.com/onyxdigitaldev/tp-fanctl'
license=('MIT')
depends=('python>=3.10' 'thinkfan')
optdepends=(
'python-gobject: system tray applet'
'libappindicator-gtk3: system tray applet'
)
makedepends=('git')
provides=('tp-fanctl')
conflicts=('tp-fanctl')
backup=(
'etc/thinkfan.yaml'
'etc/thinkfan-gaming.yaml'
)
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$pkgname"
install -Dm755 bin/tp-fanctl "$pkgdir/usr/bin/tp-fanctl"
install -Dm755 bin/tp-fanctl-tray "$pkgdir/usr/bin/tp-fanctl-tray"
install -Dm755 bin/tp-fanctl-gaming "$pkgdir/usr/bin/tp-fanctl-gaming"
install -Dm755 bin/tp-fanctl-quiet "$pkgdir/usr/bin/tp-fanctl-quiet"
install -Dm644 config/thinkfan-quiet.yaml "$pkgdir/etc/thinkfan.yaml"
install -Dm644 config/thinkfan-gaming.yaml "$pkgdir/etc/thinkfan-gaming.yaml"
install -Dm644 systemd/tp-fanctl.service "$pkgdir/usr/lib/systemd/system/tp-fanctl.service"
install -Dm644 systemd/tp-fanctl-tray.desktop "$pkgdir/etc/xdg/autostart/tp-fanctl-tray.desktop"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|