CoolerControl and IT87-Driver

Hello,

I have an Asus B450 Gaming F (II) motherboard and would like to control my fan speed with CoolerControl. As far as I could research, this requires “out-of-the-tree” drivers. I found them here:

There is also an AUR that refers to the driver from Github:
https://aur.archlinux.org/packages/it87-dkms-git

So far I have failed at every conceivable step to create a Makefile. Apparently, the file “it87.c” has to be executed with a GCC compiler. I couldn’t get that right either. I only get error messages that I am using the wrong compiler. How to change to GCC?

You can also find two files on GitHub:
[dkms-install.s] and [dkms-remove.sh]
I right-clicked on execute, but nothing happened. Can someone please tell me if what I have in mind works at all and how I can do it with ChachyOS?

The AUR package works fine for me. Do not use the scripts from source to install and remove.

I don’t get it:

❯ git clone GitHub - frankcrawford/it87
Cloning into ‘it87’…
remote: Enumerating objects: 1060, done.
remote: Counting objects: 100% (301/301), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 1060 (delta 239), reused 250 (delta 205), pack-reused 759 (from 1)
Receiving objects: 100% (1060/1060), 14.39 MiB | 7.36 MiB/s, done.
Resolving deltas: 100% (603/603), done.

❯ cd it87/

~/it87 master
❯ makepkg
==> ERROR: PKGBUILD does not exist.

Could please anyone give a question:
1)As far as I understood, in the PKGBUILD the Makefile is included, isn’t it?
2)Does it matter in which folder you copy the data from GITHub?

git clone https://aur.archlinux.org/it87-dkms-git.git
cd /t87-dkms-git.
makepkg -si