You are not logged in.

#1 2012-12-21 17:46:40

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 224
Website

[SOLVED] PKGBUILD depends

Is there a way that makepkg can understand a logical OR in depends section ?

eg.

depends=("program|program-git", "program2")

Last edited by ebal (2012-12-21 18:58:53)


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

#2 2012-12-21 17:51:25

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] PKGBUILD depends

Let's see if I can answer this correctly:

The "depends" line doesn't look for package names. Instead it looks for what a package "provides", which, in most cases, also happens to be the name of the package.

The "program-git" package should have a "provides" statement that tells pacman it can be used in place of "program". So, you don't have to "depend" on "program" and "program-git", just "program".

If "program-git" doesn't have a "provides" line, it's probably a bug in the PKGBUILD file for "program-git" and should be fixed.

...Does that make sense? I may have confused myself. tongue

Last edited by drcouzelis (2012-12-21 17:52:48)

Offline

#3 2012-12-21 18:58:39

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 224
Website

Re: [SOLVED] PKGBUILD depends

@drcouzelis thank you - solved


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

Board footer

Powered by FluxBB