diff options
author | Ewout van Mansom | 2023-04-18 23:18:09 +0200 |
---|---|---|
committer | Ewout van Mansom | 2023-04-18 23:18:09 +0200 |
commit | e979e148396b85242c6dbf7d74eea8179874a709 (patch) | |
tree | 6dec05823aeb8cd93fe7377962c3767ccb69b7ef /PKGBUILD | |
download | aur-e979e148396b85242c6dbf7d74eea8179874a709.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c323d4c84ac1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Ewout van Mansom <ewout@vanmansom.name> + +pkgbase=amdfand +pkgname=amdfand +pkgver=1.0.11 +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#tag=v${pkgver}") +arch=('x86_64') +conflicts=('amdfand-bin') +provides=('amdfand' 'amdfand-bin') +sha512sums=('SKIP') +makedepends=('git' 'cargo') +#optdepends=('amdmond' 'amdguid-glow' 'amdguid-wayland' 'amdvold') + +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" +} + |