[arch-general] PKGBUILD depends - howto specify alternate packages that can satisfy? possible?
Guys, I am trying to create a PKGBUILD that needs qt3, but I want to make it flexible enough to accept either 'qt3' or 'qt3-enhanced' as a dependency. Can I do that? I looked over https://wiki.archlinux.org/index.php/PKGBUILD and I either missed a way to do it, or I'm just confused. What say the gurus? -- David C. Rankin, J.D.,P.E.
On 27.01.2011 23:52, David C. Rankin wrote:
Guys,
I am trying to create a PKGBUILD that needs qt3, but I want to make it flexible enough to accept either 'qt3' or 'qt3-enhanced' as a dependency. Can I do that?
I looked over https://wiki.archlinux.org/index.php/PKGBUILD and I either missed a way to do it, or I'm just confused. What say the gurus?
qt3-enhanced needs to provide qt3. Then you can just depend on qt3 and it will accept both but helpers will attempt to get qt3 vanilla if you don't already have it. If you have qt3-enhanced it will still work and accept it if it provides qt3.
On 28/01/11 08:52, David C. Rankin wrote:
Guys,
I am trying to create a PKGBUILD that needs qt3, but I want to make it flexible enough to accept either 'qt3' or 'qt3-enhanced' as a dependency. Can I do that?
I looked over https://wiki.archlinux.org/index.php/PKGBUILD and I either missed a way to do it, or I'm just confused. What say the gurus?
I guess qt3-enhances has proveds=('qt3') in its PKGBUILD. So you only need to depend on qt3. Allan
On 01/27/2011 05:05 PM, Allan McRae wrote:
I guess qt3-enhances has proveds=('qt3') in its PKGBUILD. So you only need to depend on qt3.
Allan
Sven, Allan, Perfect! qt3-enhanced provides qt3: provides=('qt3=3.3.8' 'qt-enhanced=3.3.8') so if I understand correctly, then depends=('qt3' ...) will work. Thank you. One last question. I'm using a patched qt3 for tqtinterface (Trinity qtinterface) which bumps qt3 to 3.3.8c. Can I rebuild qt3 and make the provides: provides=('qt3=3.3.8c' 'qt-enhanced=3.3.8c') or is adding the lowercase 'c' to the provides line wrong? -- David C. Rankin, J.D.,P.E.
participants (3)
-
Allan McRae
-
David C. Rankin
-
Sven-Hendrik Haase