Aside from downloading and changing PKGBUILD directly, there is an AUR helper named Paru that shows the PKGBUILD contents before using it to build the package. I'm not sure, but seems like it opens inside a terminal text editor, so you can make changes before building.
Aside from downloading and changing PKGBUILD directly, there is an AUR helper named Paru that shows the PKGBUILD contents before using it to build the package. I'm not sure, but seems like it opens inside a terminal text editor, so you can make changes before building.