You are not logged in.

#1 2006-09-27 02:07:38

vasdee
Member
Registered: 2006-07-15
Posts: 55

conditional depends in PKGBUILD

Is it possible to have a conditional depends entry in a PKGBUILD? if not is there a recommended way to create a package that essentially provides the same files but with different options enabled during the build?

Perhaps an example would make things clearer...

sensors-applet (in aur), has an option to enable nvidia graphics card temperature monitoring, but this depends on having the nvidia-lib package installed (also from aur). Not everyone has an nvidia card so should i create another package called say, "sensors-applet-nvidia" or is there a way to add a dependency during the makepkg runtime to determine if the user has an nvidia card or not?

Offline

#2 2006-09-27 02:49:27

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: conditional depends in PKGBUILD

Conditional depends is not possible and uploading a  sensors-applet-nvidia package to AUR is not recommended.

In this case, just take the sensors-applet PKGBUILD and modify it to your liking ( add nvidia option and depends) but keep it for your own use.

Offline

#3 2006-09-27 12:22:24

vasdee
Member
Registered: 2006-07-15
Posts: 55

Re: conditional depends in PKGBUILD

will do, ta for the info

Offline

Board footer

Powered by FluxBB