diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-07-25 20:01:48 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-08-08 05:44:25 +0200 |
commit | 2b556d89de0d3f10466b4db4d8915a3ffb1163de (patch) | |
tree | 94487f5689c4a15e4d589abf3e6058624c8bd53a /HACKING | |
parent | cbd6c300b5bdf61b7df80f42cf06c69a6e4fde60 (diff) | |
download | pacman-2b556d89de0d3f10466b4db4d8915a3ffb1163de.tar.gz pacman-2b556d89de0d3f10466b4db4d8915a3ffb1163de.tar.xz |
PKGBUILD: handle arch specific attributes
This introduces support for architecture-specific conflicts, depends,
optdepends, makedepends, replaces, and conflicts by appending "_$CARCH"
to the array name. For example, in the global section:
arch=('i686' 'x86_64')
depends=('foo')
depends_x86_64=('bar')
This will generate depends of 'foo' and 'bar' on x86_64, but only 'foo'
on i686. Moreover, this is supported in the package functions with the
same heuristics as the generic names, e.g.
...
arch=('i686' 'x86_64')
depends=('foo')
...
package_somepkg() {
depends_x86_64=('bar')
...
}
Again, will cause x86_64 to have depends of 'foo' and 'bar', but only
'foo' for i686.
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions