You are not logged in.
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
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
will do, ta for the info
Offline