Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorRobin Broda <robin@broda.me>2018-05-03 09:39:16 +0200
committerAllan McRae <allan@archlinux.org>2018-05-12 21:22:46 +1000
commitf173f6d0da3793952691416d80441b46af12fc94 (patch)
tree132f940f851b274fb68e1dfc392146f50c71ea32 /scripts/makepkg.sh.in
parent2b4c996b86782ee7280f5c6de1ef873ed9858f7a (diff)
Add pkgarch to .BUILDINFO
Architecture information is required for repro tooling This is a revised version of https://patchwork.archlinux.org/patch/475/ Signed-off-by: Robin Broda <robin@broda.me> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 64276c5d..238d4259 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -687,6 +687,8 @@ write_buildinfo() {
local fullver=$(get_full_version)
write_kv_pair "pkgver" "$fullver"
+ write_kv_pair "pkgarch" "$pkgarch"
+
local sum="$(sha256sum "${BUILDFILE}")"
sum=${sum%% *}
write_kv_pair "pkgbuild_sha256sum" $sum