blob: 26dba1b560e106f110f12480b7a483c1b7d82043 (
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
|
# Maintainer: Eason Qin <eason@ezntek.com>
_pkgname="tpfanctl"
pkgname="${_pkgname}"
pkgver=0.1.1
pkgrel=1
pkgdesc="A simple ThinkPad fan control CLI for Linux, written in Rust."
arch=("x86_64")
url="https://github.com/ezntek/tpfanspeed"
license=('MPL-2.0')
groups=()
provides=("tpfanctl" "setfan")
conflicts=("tpfanctl" "tpfanctl-bin" "tpfanctl-git")
depends=("lm_sensors")
makedepends=("cargo")
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("312cd45f0a7b8a062bfaf1a00cebb7feccf1fffe13b43630c91d28ddad2787c4")
build() {
cd "tpfanspeed-${pkgver}"
cargo build --release --frozen
}
package() {
cd "tpfanspeed-${pkgver}"
install -Dm755 "target/release/tpfanctl" "$pkgdir/usr/bin/tpfanctl"
install -Dm755 "target/release/setfan" "$pkgdir/usr/bin/setfan"
install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|