~mser/pkg.mser.at

1b8ed1ab8bef6fafae4efe526af3db71011fb69c — Michael Serajnik a month ago 75d0ea8
Add package amdgpu-fancontrol-git
1 files changed, 27 insertions(+), 0 deletions(-)

A packages/amdgpu-fancontrol-git/PKGBUILD
A packages/amdgpu-fancontrol-git/PKGBUILD => packages/amdgpu-fancontrol-git/PKGBUILD +27 -0
@@ 0,0 1,27 @@
# Maintainer: Michael Serajnik <m at mser dot at>
pkgname=amdgpu-fancontrol-git
_pkgname=amdgpu-fancontrol
pkgver=r24.917edbc
pkgrel=1
pkgdesc="A simple bash script to control the fan speed of AMD graphics cards"
arch=("any")
url="https://sr.ht/~mser/${_pkgname}/"
license=("GPL3")
depends=("bc" "systemd")
provides=("amdgpu-fancontrol")
conflicts=("amdgpu-fancontrol")
backup=("etc/amdgpu-fancontrol.cfg")
source=("${_pkgname}::git+https://git.sr.ht/~mser/amdgpu-fancontrol")
md5sums=("SKIP")

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 "amdgpu-fancontrol.sh" "$pkgdir/usr/bin/amdgpu-fancontrol"
  install -Dm644 "etc-amdgpu-fancontrol.cfg" "$pkgdir/etc/amdgpu-fancontrol.cfg"
  install -Dvm644 "amdgpu-fancontrol.service" "$pkgdir/usr/lib/systemd/system/amdgpu-fancontrol.service"
}