From 87e6c410efab7034b766c083b4c03f788dda399b Mon Sep 17 00:00:00 2001 From: dataprolet Date: Mon, 13 May 2024 17:25:31 +0000 Subject: [PATCH] Add PKGBUILD --- amdfand-bin/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 amdfand-bin/PKGBUILD diff --git a/amdfand-bin/PKGBUILD b/amdfand-bin/PKGBUILD new file mode 100644 index 0000000..7705c27 --- /dev/null +++ b/amdfand-bin/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer Adrian Woźniak +# Contributor: Arne Brücher + +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" +} \ No newline at end of file