I want to install libfprint-elanmoc2-git from the AUR, but with my own custom repo. So I cloned the original git repo, changed some files, and ran pamac build libfprint-elanmoc2-git and then clicked “e” so I could edit the PKGBUILD, but after I saved my edits and exited nano it went back to the same prompt:
So then I clicked “e” again, so I could verify my changes were saved, but when it entered nano my changes were reverted. Meaning the file was back to its original state. Is there any way I could edit the build files without my changes getting reverted?
Edit the PKGBUILD before you start the build process?
Like you would do if you used makepkg to build your program.
I think - if I got this right - that the change you make the way you describe is not written back to the original file, but your change is still used to build the program in this one instance.
then, by issuing the command pamac build libfprint-elanmoc2-git pamac downloaded and used a completely new, fresh copy, totally ignoring the present customized repo
To use his changed files, using just pamac build
inside that directory
would do what was intended.