You are not logged in.
Hi,
I have a little question. Perhaps it is stupid so sorry for that in advance.
Until now i didn't need to modify a AUR package, and so i installed them with "makepkg -si".
But now i want to tweak some files of a AUR Package before compiling it.
I believe i must do:
- makepkg -oe (to download without extracting or building (as they say in the man page))
- then i do my tweaking...
- and then?... how to build at this stage? must i do "makepkg -si" ? I've read the man page but i didn't see the light...
Last edited by Le Limule (2023-03-03 15:44:29)
Offline
Generally, you'd either modify the PKGBUILD to make the changes, or use -o (not -e), make the changes, THEN run it with -e.
Offline
In double checking the man page I can see the ambiguity in the description of the -e flag, but as Scimmia notes, you'd use the -e flag only when you want to build the result of your local changes:
makepkg -o
$EDITOR src/path/to/file_to_edit
makepkg -efi
Note I also included the -f and -i flags in my example as in many cases this is the intended result. The -f is necessary if you already built a version of the package before doing your edits (and it's a harmless no-op in other cases). And the -i flag just to install the result of this build.
EDIT: of course the -s flag would also be useful (or necessary) and could be added just as well to either the first or second call to makepkg.
Last edited by Trilby (2023-03-03 15:34:05)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you very much. Quick and complete answers!...
Offline