[arch-commits] Commit in junit-system-rules/repos/community-any (PKGBUILD PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Tue Jun 30 15:27:12 UTC 2020


    Date: Tuesday, June 30, 2020 @ 15:27:12
  Author: diabonas
Revision: 657176

archrelease: copy trunk to community-any

Added:
  junit-system-rules/repos/community-any/PKGBUILD
    (from rev 657175, junit-system-rules/trunk/PKGBUILD)
Deleted:
  junit-system-rules/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   83 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 44 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-30 15:27:05 UTC (rev 657175)
+++ PKGBUILD	2020-06-30 15:27:12 UTC (rev 657176)
@@ -1,39 +0,0 @@
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-pkgname=junit-system-rules
-pkgver=1.19.0
-_commit=f4782ebfd72c08bd3f00aa04ad20fe499c5463b4 # signed commit corresponding to tag system-rules-1.19.0
-pkgrel=5
-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' 'strip-nondeterminism')
-source=("$pkgname::git+https://github.com/stefanbirkner/system-rules.git?signed#commit=$_commit")
-sha512sums=('SKIP')
-validpgpkeys=('F4AF40991AECE57728B0034F9ECE1F68817F4996') # Stefan Birkner <mail at stefan-birkner.de>
-
-build() {
-	cd "$pkgname"
-
-	# The package cannot be compiled with newer Java versions (but works fine at runtime)
-	# (https://github.com/stefanbirkner/system-rules/issues/65#issuecomment-402837535)
-	export PATH="/usr/lib/jvm/java-8-openjdk/bin:$PATH"
-
-	mvn -DskipTests=true clean package
-
-	# 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() {
-	cd "$pkgname"
-	mvn test
-}
-
-package() {
-	cd "$pkgname"
-	install -Dm644 "target/system-rules-$pkgver.jar" -t "$pkgdir/usr/share/java/junit-system-rules"
-	ln -s "system-rules-$pkgver.jar" "$pkgdir/usr/share/java/junit-system-rules/system-rules.jar"
-}

Copied: junit-system-rules/repos/community-any/PKGBUILD (from rev 657175, junit-system-rules/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-30 15:27:12 UTC (rev 657176)
@@ -0,0 +1,44 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=junit-system-rules
+pkgver=1.19.0
+_commit=f4782ebfd72c08bd3f00aa04ad20fe499c5463b4 # signed commit corresponding to tag "system-rules-$pkgver"
+pkgrel=6
+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' 'strip-nondeterminism')
+source=("$pkgname::git+https://github.com/stefanbirkner/system-rules.git?signed#commit=$_commit")
+sha512sums=('SKIP')
+validpgpkeys=('F4AF40991AECE57728B0034F9ECE1F68817F4996') # Stefan Birkner <mail at stefan-birkner.de>
+
+pkgver() {
+	cd "$pkgname"
+	git describe --tags | sed 's/^system-rules-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+	cd "$pkgname"
+
+	# The package cannot be compiled with newer Java versions (but works fine at runtime)
+	# (https://github.com/stefanbirkner/system-rules/issues/65#issuecomment-402837535)
+	export PATH="/usr/lib/jvm/java-8-openjdk/bin:$PATH"
+
+	mvn -DskipTests=true clean package
+
+	# 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() {
+	cd "$pkgname"
+	mvn test
+}
+
+package() {
+	cd "$pkgname"
+	install -Dm644 "target/system-rules-$pkgver.jar" -t "$pkgdir/usr/share/java/junit-system-rules"
+	ln -s "system-rules-$pkgver.jar" "$pkgdir/usr/share/java/junit-system-rules/system-rules.jar"
+}



More information about the arch-commits mailing list