summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-19 13:48:54 +0100
committerErich Eckner <git@eckner.net>2019-11-19 13:48:59 +0100
commit02fb3bbf216210adf0d777952da4610c267aee2a (patch)
tree7a9ea8440481409081c3db0b7a42aa71f5e26389
parenta75a274bd9b68cd8be73968c7f9dce48824ea53c (diff)
downloadpackages-02fb3bbf216210adf0d777952da4610c267aee2a.tar.xz
README.md: add hints for overwritable variables in the PKGBUILD
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
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).