Signed-off-by: Levente Polyak <[email protected]>
---
 scripts/makepkg.sh.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index bd92c526..83c80fa7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1731,6 +1731,9 @@ if (( !REPKG )); then
                if (( PREPAREFUNC )); then
                        run_prepare
                fi
+
+               # unify source times before building for reproducibility
+               find "$srcdir" -exec touch -h -d "@${SOURCE_DATE_EPOCH}" {} +
        fi
 
        if (( PKGVERFUNC )); then
-- 
2.12.2

Reply via email to