2 Aug
2009
2 Aug
'09
9:57 a.m.
depends=('foo' 'baz') [ "$(uname -m)" == 'x86_64' ] && depends=('lib32-foo' 'lib32-baz')
One more thing: this should be done this way, IMHO.... pacman already knows the architecture, so the package shouldn't probe the kernel. Better to have something like: if [ "${CARCH}" = 'i686' ]; then depends=('foo' 'baz') elif [ "${CARCH}" = 'x86_64' ]; then depends=('lib32-foo' 'lib32-baz') fi ... maybe with extra error checking. See, e.g. extra/flashplugin. But this is still not interpreted on AUR. Greg