Add PKGBUILD

This commit is contained in:
dataprolet 2024-05-13 17:25:31 +00:00
parent d46f1117d9
commit 87e6c410ef
1 changed files with 29 additions and 0 deletions

29
amdfand-bin/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# Maintainer Adrian Woźniak <adrian.wozniak@ita-prog.pl>
# Contributor: Arne Brücher <archlinux[at]arne-bruecher[dot]de>
pkgbase=amdfand-bin
pkgname=amdfand-bin
pkgver=1.0.14
pkgrel=5
pkgdesc="AMDGPU fan speed management tool"
url="https://github.com/Eraden/amdgpud"
license=('MIT' 'Apache-2.0')
source=( "$url/releases/download/v1.0.12/amdfand-archlinux-latest-$pkgver.zip")
arch=('x86_64')
md5sums=('1a30e5ee9a3526f25c3b8b04141cb55c')
keywords=( 'amdgpu' 'controller' 'fan', 'overclocking', 'voltage')
makedeps=('unzip')
optdepends=('amdmond-bin' 'amdguid-glow-bin' 'amdguid-wayland-bin' 'amdvold-bin')
build() {
cd $srcdir/
unzip -v $srcdir/amdfand-archlinux-latest-$pkgver.zip
}
package() {
cd $srcdir/
mkdir -p $pkgdir/usr/bin/
mkdir -p $pkgdir/usr/lib/systemd/system/
install -m 0755 $srcdir/target/release/amdfand $pkgdir/usr/bin
install -m 0755 $srcdir/services/amdfand.service "$pkgdir/usr/lib/systemd/system/amdfand.service"
}