From cffbdfdfccd3b60cabdbbd74bf099b8c1f7b9395 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 5 Mar 2016 23:39:18 +0100 Subject: [PATCH] firefox: fix reproducible build. --- srcpkgs/firefox/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index a788b36850d..bb9f6ebd390 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -1,7 +1,7 @@ # Template build file for 'firefox'. pkgname=firefox version=44.0.2 -revision=1 +revision=2 short_desc="Lightweight gecko-based web browser" maintainer="Juan RP " homepage="https://www.mozilla.org/firefox/" @@ -110,8 +110,11 @@ do_configure() { --disable-profilelocking ${_args} } do_build() { + if [ "$SOURCE_DATE_EPOCH" ]; then + mozdate="MOZ_BUILD_DATE=$(date --date "@$SOURCE_DATE_EPOCH" "+%Y%m%d%H%M%S")" + fi cd xbps-build - SHELL=/bin/bash make ${makejobs} + SHELL=/bin/bash make ${mozdate} ${makejobs} } do_install() { cd xbps-build