From fa5afbc30b68912eb7f16d434a27faf787c3da9c Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Tue, 27 Jul 2021 19:22:19 +0800
Subject: checkpkg: set makepkg vars from build root to support none host archs

When building for an architecture different from the host, the correct
old package was downloaded as "$copydir"'s pacman was configured with
the target CARCH, but checkpkg doesn't know this and tries to search the
cache for host CARCH instead, producing the following error:

`==> ERROR: tarball not found for package: xxx`

This change fixes this by passing the appropriate makepkg config
explicitly, so that checkpkg behaves consistently.

Co-Authored-by: Levente Polyak <anthraxx@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
---
 doc/checkpkg.1.asciidoc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'doc/checkpkg.1.asciidoc')

diff --git a/doc/checkpkg.1.asciidoc b/doc/checkpkg.1.asciidoc
index 6a70dbb..d95f350 100644
--- a/doc/checkpkg.1.asciidoc
+++ b/doc/checkpkg.1.asciidoc
@@ -29,6 +29,9 @@ Options
 *-w, --warn*::
 	Print a warning instead of a regular message in case of soname differences.
 
+*-M, --makepkg-config*::
+	Set an alternate makepkg configuration file.
+
 *-h, --help*::
 	Show a help text
 
-- 
cgit v1.2.3-70-g09d2

