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

Jonas Witschel diabonas at archlinux.org
Thu Feb 6 15:54:28 UTC 2020


    Date: Thursday, February 6, 2020 @ 15:54:28
  Author: diabonas
Revision: 563639

Add pkgver() function

Modified:
  junit-system-rules/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-06 15:53:04 UTC (rev 563638)
+++ PKGBUILD	2020-02-06 15:54:28 UTC (rev 563639)
@@ -1,7 +1,7 @@
 # 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
+_commit=f4782ebfd72c08bd3f00aa04ad20fe499c5463b4 # signed commit corresponding to tag "system-rules-$pkgver"
 pkgrel=5
 pkgdesc='A collection of JUnit rules for testing code that uses java.lang.System'
 arch=('any')
@@ -27,6 +27,11 @@
 	strip-nondeterminism --timestamp "$SOURCE_DATE_EPOCH" "target/system-rules-$pkgver.jar"
 }
 
+pkgver() {
+	cd "$pkgname"
+	git describe --tags | sed 's/^system-rules-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
 check() {
 	cd "$pkgname"
 	mvn test



More information about the arch-commits mailing list