summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}