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:
authorLevente Polyak <anthraxx@archlinux.org>2017-07-06 13:57:27 +1000
committerAllan McRae <allan@archlinux.org>2017-07-06 13:57:27 +1000
commitc44c649a5280189ea28a54b82e60fc38279fed23 (patch)
tree5cd1cdc4420500b09b5919ec4047f99c5f8d07a6 /scripts/makepkg.sh.in
parent9ab44178f4054ffe26af784c32ca9bddb9793e7e (diff)
makepkg: add more information to .BUILDINFO
The .BUILDINFO file should retain all the information needed to reproducibly build a package. Add some extra information to the file and also provide a version number to keep track of future changes. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 3c29c2d8..20e9dd7e 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -667,13 +667,21 @@ write_pkginfo() {
write_buildinfo() {
msg2 "$(gettext "Generating %s file...")" ".BUILDINFO"
- write_kv_pair "builddir" "${BUILDDIR}"
+ write_kv_pair "format" "1"
+
+ write_kv_pair "pkgname" "$pkgname"
+ write_kv_pair "pkgbase" "$pkgbase"
+
+ local fullver=$(get_full_version)
+ write_kv_pair "pkgver" "$fullver"
local sum="$(sha256sum "${BUILDFILE}")"
sum=${sum%% *}
-
write_kv_pair "pkgbuild_sha256sum" $sum
+ write_kv_pair "packager" "${PACKAGER}"
+ write_kv_pair "builddate" "${SOURCE_DATE_EPOCH}"
+ write_kv_pair "builddir" "${BUILDDIR}"
write_kv_pair "buildenv" "${BUILDENV[@]}"
write_kv_pair "options" "${OPTIONS[@]}"