diff options
author | Patrick 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) |
commit | 8bde757d93e4ff66587564f1cdf7d59f34ae6207 (patch) | |
tree | d58f37bebaf0a26930ca0dac066f2dc3aa31f3e4 | |
parent | 008316c9a22d975d9da88ea59109b794f599d71a (diff) |
opkbuild: Set SOURCE_DATE_EPOCH
-rw-r--r-- | src/opkbuild.sh | 3 |
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 } |