You are not logged in.

#1 2019-01-17 15:24:38

spandan2
Member
Registered: 2017-10-02
Posts: 11

Add AUR dependencies to pkgbuild

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

#2 2019-01-17 15:28:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,240

Re: Add AUR dependencies to pkgbuild

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

#3 2019-01-17 15:36:04

progandy
Member
Registered: 2012-05-17
Posts: 5,263

Re: Add AUR dependencies to pkgbuild

V1del wrote:

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

#4 2019-01-17 15:38:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Add AUR dependencies to pkgbuild

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:

V1del wrote:

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

Board footer

Powered by FluxBB