You are not logged in.
How do I add AUR dependencies in the PKGBUILD file? When i add the package names in depends or makedepends it just shows that pacman can't find them. Is it possible without manually cloning the repos and running makepkg si individually for each package ?
Offline
The officially reccommended way is as you suggest, download the deps first and makepkg -si --asdeps them until they all are present and resolvable. As this can be tedious if it needs to be done for a lot of dependencies various AUR helpers have been developed to help with this.
Edit: Incorporated the --asdeps suggestion, which indeed make sense here
Moving to AUR issues.
Last edited by V1del (2019-01-17 15:49:06)
Offline
The officially reccommended way is as you suggest, download the deps first and makepkg -si them until they all are present and resolvable.
If you do that, remember to use the --asdeps switch for dependencies. That allows you to remove packages with all unneeded dependencies later with "pacman -Rs".
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
There are two separate questions here. First, how do you add them to PKGBUILD, just like any other dependency: list them in the relevant array. That's it.
How do you build a package with AUR dependencies was addressed by V1del, but I'd amend one point slightly:
download the deps first and makepkg -si them
I'd suggest using the '--asdeps' flag for these to keep your package database tidy.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline