~mser/amdgpu-fancontrol

8b013fc4668acb5e70e619555e26facf2708d0b9 — Michael Serajnik a month ago f3a7f25
Update PKGBUILD
3 files changed, 26 insertions(+), 28 deletions(-)

M .gitignore
M PKGBUILD
R amdgpu-fancontrol => amdgpu-fancontrol.sh
M .gitignore => .gitignore +4 -12
@@ 1,13 1,5 @@
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
/amdgpu-fancontrol
/pkg
/src

pkg/
src/
*.pkg.tar*

M PKGBUILD => PKGBUILD +22 -16
@@ 1,21 1,27 @@
pkgname=amdgpu-fancontrol
pkgdesc="amdgpu-fancontrol"
pkgver=1.0
# Maintainer: Michael Serajnik <m at mser dot at>
pkgname=amdgpu-fancontrol-git
_pkgname=amdgpu-fancontrol
pkgver=1
pkgrel=1
arch=('any')
license=('GPL')
depends=('systemd' 'bc')
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=('amdgpu-fancontrol' 'amdgpu-fancontrol.service' 'etc-amdgpu-fancontrol.cfg')
sha256sums=('c1783eb8d8cee21b97f336116fc42dd74e546de06c07a2b975b84c0d8a4094b4'
            '603031d58a1d6a16242fe24296ee6787d17cdcd347b1235e869936ec70203c29'
            'f2ff0800fc13730c8aa591fa9b31002aa7bd860c23fc13b88c92b4e1e3a60aa3')
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() {
    mkdir -p ${pkgdir}/usr/bin
    cp ${srcdir}/amdgpu-fancontrol ${pkgdir}/usr/bin/
    mkdir -p ${pkgdir}/usr/lib/systemd/system
    cp ${srcdir}/amdgpu-fancontrol.service ${pkgdir}/usr/lib/systemd/system/
    mkdir -p ${pkgdir}/etc
    cp ${srcdir}/etc-amdgpu-fancontrol.cfg ${pkgdir}/etc/amdgpu-fancontrol.cfg
  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"
}

R amdgpu-fancontrol => amdgpu-fancontrol.sh +0 -0