summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 01:01:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 01:01:41 (EDT)
commit8bde757d93e4ff66587564f1cdf7d59f34ae6207 (patch)
treed58f37bebaf0a26930ca0dac066f2dc3aa31f3e4
parent008316c9a22d975d9da88ea59109b794f599d71a (diff)
opkbuild: Set SOURCE_DATE_EPOCH
-rw-r--r--src/opkbuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 4f3420e..dd2dfc2 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -35,6 +35,7 @@ export OPK_HOST_ARCH_CPU=
export OPK_HOST_ARCH_KERNEL=
export OPK_HOST_ARCH_LIBS=
export OPK_HOST_PLAT=
+export SOURCE_DATE_EPOCH=
bindir=
opt_build=
@@ -235,6 +236,8 @@ setup_package()
ob_parse_version -u 'OPK_SOURCE_VERSION_UPSTREAM' -- \
"${OPK_SOURCE_VERSION}"
OPK_BINARY_VERSION="$(ob_get_source_parameter 'Version')"
+ SOURCE_DATE_EPOCH="$(ob_rfc822_mktime \
+ "$(ob_get_source_parameter 'Date')")"
return 0
}