[arch-commits] Commit in junit-system-rules/trunk (PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Fri Oct 11 15:32:34 UTC 2019


    Date: Friday, October 11, 2019 @ 15:32:34
  Author: diabonas
Revision: 514923

upgpkg: junit-system-rules 1.19.0-3

Make package reproducible

Modified:
  junit-system-rules/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-11 15:29:46 UTC (rev 514922)
+++ PKGBUILD	2019-10-11 15:32:34 UTC (rev 514923)
@@ -2,13 +2,13 @@
 pkgname=junit-system-rules
 pkgver=1.19.0
 _commit=f4782ebfd72c08bd3f00aa04ad20fe499c5463b4 # signed commit corresponding to tag system-rules-1.19.0
-pkgrel=2
+pkgrel=3
 pkgdesc='A collection of JUnit rules for testing code that uses java.lang.System'
 arch=('any')
 url='https://stefanbirkner.github.io/system-rules/'
 license=('CPL')
 depends=('junit')
-makedepends=('git' 'jdk8-openjdk' 'maven')
+makedepends=('git' 'jdk8-openjdk' 'maven' 'strip-nondeterminism')
 source=("$pkgname::git+https://github.com/stefanbirkner/system-rules.git?signed#commit=$_commit"
         'https://github.com/stefanbirkner/system-rules/commit/f3bdb617cea7ab6663d9ec42d16d5f257b3a3f5c.patch')
 sha512sums=('SKIP'
@@ -29,6 +29,10 @@
 	export PATH="/usr/lib/jvm/java-8-openjdk/bin:$PATH"
 
 	mvn -DskipTests=true -Dfindbugs.skip=true -Dgpg.skip=true install
+
+	# Timestamps in JAR files generated by Maven do not honour SOURCE_DATE_EPOCH
+	# (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318)
+	strip-nondeterminism --timestamp "$SOURCE_DATE_EPOCH" "target/system-rules-$pkgver.jar"
 }
 
 check() {



More information about the arch-commits mailing list