[arch-commits] Commit in nspr/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Fri Jun 7 12:40:58 UTC 2019


    Date: Friday, June 7, 2019 @ 12:40:58
  Author: jelle
Revision: 355308

make nspr reproducible by setting SH_NOW/SH_DATE

Modified:
  nspr/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-07 09:08:34 UTC (rev 355307)
+++ PKGBUILD	2019-06-07 12:40:58 UTC (rev 355308)
@@ -27,8 +27,11 @@
       --enable-optimize \
       --disable-debug \
       $([[ $CARCH == x86_64 ]] && echo --enable-64bit)
-  make
+  make ${SOURCE_DATE_EPOCH:+
+    SH_NOW="${SOURCE_DATE_EPOCH}000000"
+    SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
 }
+}
 
 package() {
   cd nspr-$pkgver/nspr


More information about the arch-commits mailing list