Pamac update -a reinstalls same version

Hi,
I have an issue with pamac and AUR packages.
Every time that an AUR update is detected (I use pamac update -a), pamac tries to reinstall same version instead of updating to latest.
This happens with all packages. It all started apparently random some months ago. It used to work correctly for a long time, than for no reason I started facing this issue.
The only way to update to latest version is to remove my installed package, and rebuild it from scratch.
I tried to clean package cache and also build cache to no avail.

This is a log showing the last time it happened (today):

[user@host ~]$ pamac update
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Redacted (user)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Nothing to do.
Transaction successfully finished.
[user@host ~]$ pamac update -a
Preparing...
Checking netstandard-targeting-pack-bin dependencies...
Checking openhab3 dependencies...
Checking dotnet-sdk-bin dependencies...
Checking aspnet-runtime-bin dependencies...
Checking dotnet-host-bin dependencies...
Checking dotnet-runtime-bin dependencies...
Checking dotnet-targeting-pack-bin dependencies...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Redacted (user)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Warning: dotnet-sdk-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Warning: aspnet-runtime-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Warning: netstandard-targeting-pack-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Warning: openhab3-3.1.0-2 is up to date -- reinstalling
Warning: dotnet-targeting-pack-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Warning: dotnet-runtime-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Warning: dotnet-host-bin-5.0.8.sdk302-1 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To build (7):
  dotnet-host-bin                 5.0.8.sdk302-1                    AUR
  dotnet-runtime-bin              5.0.8.sdk302-1                    AUR
  netstandard-targeting-pack-bin  5.0.8.sdk302-1                    AUR
  dotnet-targeting-pack-bin       5.0.8.sdk302-1                    AUR
  dotnet-sdk-bin                  5.0.8.sdk302-1                    AUR
  aspnet-runtime-bin              5.0.8.sdk302-1                    AUR
  openhab3                        3.1.0-2                           AUR

I tried cleaning pamac cache but nothing changed:

[user@host ~]$ pamac clean -k 0
[user@host ~]$ pamac clean -b

Removing packages works:

[user@host ~]$ pamac remove dotnet-host-bin dotnet-runtime-bin netstandard-targeting-pack-bin dotnet-sdk-bin aspnet-runtime-bin openhab3
Preparing...
Checking dependencies...

To remove (7):
  aspnet-runtime-bin              5.0.8.sdk302-1
  openhab3                        3.1.0-2
  dotnet-sdk-bin                  5.0.8.sdk302-1
  dotnet-targeting-pack-bin       5.0.8.sdk302-1  (Depends On: netstandard-targeting-pack-bin)
  dotnet-runtime-bin              5.0.8.sdk302-1
  dotnet-host-bin                 5.0.8.sdk302-1
  netstandard-targeting-pack-bin  5.0.8.sdk302-1

Total removed size: 516.5 MB
...
[user@host ~]$ pamac build dotnet-host-bin dotnet-runtime-bin netstandard-targeting-pack-bin dotnet-sdk-bin aspnet-runtime-bin openhab3
Preparing...
Checking dotnet-sdk-bin dependencies...
Checking openhab3 dependencies...
Checking netstandard-targeting-pack-bin dependencies...
Checking dotnet-host-bin dependencies...
Checking dotnet-runtime-bin dependencies...
Checking aspnet-runtime-bin dependencies...
Checking dotnet-runtime-bin dependencies...
Checking dotnet-targeting-pack-bin dependencies...
Checking netstandard-targeting-pack-bin dependencies...
Checking dotnet-runtime-bin dependencies...
Checking netstandard-targeting-pack-bin dependencies...
Checking dotnet-host-bin dependencies...
Checking dotnet-host-bin dependencies...
Checking dotnet-host-preview dependencies...
Checking dotnet-host-preview dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (7):
  dotnet-host-bin                 5.0.9.sdk400-1    AUR
  dotnet-runtime-bin              5.0.9.sdk400-1    AUR
  netstandard-targeting-pack-bin  5.0.9.sdk400-1    AUR
  dotnet-targeting-pack-bin       5.0.9.sdk400-1    AUR
  dotnet-sdk-bin                  5.0.9.sdk400-1    AUR
  openhab3                        3.1.0-3           AUR
  aspnet-runtime-bin              5.0.9.sdk400-1    AUR

Can anyone help me what to do to fix this strange issue?
Thanks!

aur with pamac is “complicated”

one solution in this subject is with gui to “edit” pkgbuild ?

Until this is fixed in pamac just install yay and update with

yay -Syu

It will update packages from Manjaro’s repos and AUR packages as well.

If you have GIT packages from AUR add the flag

--devel