You are not logged in.
How can I specify that the user needs to have either package A or B as a dependency? If the user has neither, how does a PKGBUILD specify which is the default to install?
There are three handbrake packages that will satisfy the dependency requirement: handbrake, handbrake-svn (from the AUR), and handbrake-cli. I have a script that uses a component of all three of them. I need to make sure that the deps are handeled correctly in my PKGBUILD.
This is what I have (based on fukawi's PKGBUILD for backintime):
if [ ! -x '/usr/bin/HandBrakeCLI' ]; then
depends=( ${depends[@]} 'handbrake-cli')
else
depends=( ${depends[@]} 'handbrake-svn-cli')
fiLast edited by graysky (2010-11-07 13:34:43)
Offline
Typically you depend on the provision. In this case, you'd depend on handbrake as handbrake-svn provides handbrake. I'm not familiar with handbrake, but extra/handbrake-cli seems to be a separate animal. It doesn't conflict with extra/handbrake. Are you sure it provides what you need it to?
Offline
@falconindy - yes, handbrake and handbrake-cli both provide a cli version (handbrake provides both a GUI and cli). The AUR has handbrake-svn which also provides both a GUI and cli version.
Offline
@falconindy - you are right. My bad. I asked the maintainer of handbrake-svn to make it a split package: http://aur.archlinux.org/packages.php?ID=29320
Last edited by graysky (2010-11-07 13:35:30)
Offline
The AUR does not support split packages yet.
Offline
@SH - I know that it doesn't officially support them, but if you construct the PKGBUILD as I have here, they can be successfully uploaded:
Give it a try ![]()
Offline