[aur-dev] PKGBUILD parsing on the AUR

Gergely Imreh imrehg at gmail.com
Sun Aug 2 05:57:05 EDT 2009


> 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


More information about the aur-dev mailing list