There is an AUR package that errors when I update it, and it has been like that for a while so I wondered if I could fix it myself?
The Package is here https://aur.archlinux.org/packages/filebrowser-bin
You can see my comment explaining the error under the username “mub”.
Did you change something in the license file yourself? Check your yay cache and perhaps delete the cached files for this package.
While there seem to be other issues with the PKGBUILD (typo for example), this seems like a problem with your local setup and not the package. Note that using AUR helpers like yay are not supported, so check if the package builds correctly manually.
How are you installing this package?
I download the PKGBUILD and run makepkg on it. In this case I would edit the PKGBUILD and run makepkg again.
Seems trivial, but I understand there’s an error in the PKGBUILD that should be fixed on the AUR so others don’t have to manually fix it, too.