blob: 833bb35142a746da836b4a7d7f1a32844856d1e1 (
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
|
# Maintainer: Arne BrĂ¼cher <archlinux[at]arne-bruecher[dot]de>
# Contributor: Ewout van Mansom <ewout@vanmansom.name>
pkgname=amdfand
pkgver=1.0.14
pkgrel=1
pkgdesc="AMDGPU fan speed management tool"
url="https://github.com/Eraden/amdgpud"
license=('MIT' 'Apache-2.0')
source=("amdfand::git+https://github.com/Eraden/amdgpud.git")
arch=('x86_64')
conflicts=('amdfand-bin' 'amdfand-git')
provides=('amdfand')
sha512sums=('SKIP')
makedepends=('git' 'cargo')
optdepends=('amdguid-glow' 'amdguid-wayland')
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --bin amdfand
}
check() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --bin amdfand
}
package() {
cd "$pkgname"
install -D -m 0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -D -m 0755 -t "$pkgdir/usr/lib/systemd/system" "services/amdfand.service"
}
|