From 02fb3bbf216210adf0d777952da4610c267aee2a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 19 Nov 2019 13:48:54 +0100 Subject: README.md: add hints for overwritable variables in the PKGBUILD --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index fcf152ad..015834e3 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,9 @@ Additional to the abovementioned changes to the package sources, the following c * append architectures to `arch` array * append our sub_pkgrel * remove `lib32-` prefixes if present + +Hints: +* Using `CARCH` outside of the default functions in the `PKGBUILD` will not work, as the `PKGBUILD` is parsed once **on an x86_64 host**. +Use `$variable_$arch` instead as documented upstream. +* For the same reason, patching `pkgname` on a per-`CARCH` basis is not possible. +Instead of removing an item from the `pkgname` array for a certain architecture, one can make the respective `package_...` function's body empty (one should **not** undefine the whole function). -- cgit v1.2.3