index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Robin Broda <robin@broda.me> | 2018-05-03 09:39:16 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-05-12 21:22:46 +1000 |
commit | f173f6d0da3793952691416d80441b46af12fc94 (patch) | |
tree | 132f940f851b274fb68e1dfc392146f50c71ea32 | |
parent | 2b4c996b86782ee7280f5c6de1ef873ed9858f7a (diff) |
-rw-r--r-- | doc/BUILDINFO.5.txt | 3 | ||||
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
diff --git a/doc/BUILDINFO.5.txt b/doc/BUILDINFO.5.txt index b7a72831..597d11f6 100644 --- a/doc/BUILDINFO.5.txt +++ b/doc/BUILDINFO.5.txt @@ -38,6 +38,9 @@ BUILDINFO file format. *pkgver*:: The version of the package including pkgrel and epoch. +*pkgarch*:: + The architecture of the package. + *pkgbuild_sha256sum*:: The sha256sum in hex format of the PKGBUILD used to build the package. 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 |