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>
This commit is contained in:
parent
2b4c996b86
commit
f173f6d0da
2 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,9 @@ BUILDINFO file format.
|
||||||
*pkgver*::
|
*pkgver*::
|
||||||
The version of the package including pkgrel and epoch.
|
The version of the package including pkgrel and epoch.
|
||||||
|
|
||||||
|
*pkgarch*::
|
||||||
|
The architecture of the package.
|
||||||
|
|
||||||
*pkgbuild_sha256sum*::
|
*pkgbuild_sha256sum*::
|
||||||
The sha256sum in hex format of the PKGBUILD used to build the package.
|
The sha256sum in hex format of the PKGBUILD used to build the package.
|
||||||
|
|
||||||
|
|
|
@ -687,6 +687,8 @@ write_buildinfo() {
|
||||||
local fullver=$(get_full_version)
|
local fullver=$(get_full_version)
|
||||||
write_kv_pair "pkgver" "$fullver"
|
write_kv_pair "pkgver" "$fullver"
|
||||||
|
|
||||||
|
write_kv_pair "pkgarch" "$pkgarch"
|
||||||
|
|
||||||
local sum="$(sha256sum "${BUILDFILE}")"
|
local sum="$(sha256sum "${BUILDFILE}")"
|
||||||
sum=${sum%% *}
|
sum=${sum%% *}
|
||||||
write_kv_pair "pkgbuild_sha256sum" $sum
|
write_kv_pair "pkgbuild_sha256sum" $sum
|
||||||
|
|
Loading…
Add table
Reference in a new issue