summaryrefslogtreecommitdiff
path: root/pcr/junit-truth/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-08 07:46:46 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-08 14:00:10 +0100
commit3668cce7ff47496a3d1a24e154ac87629832d10d (patch)
tree74267ac09d35c9755c2f2d538c248cd2b0b00e0f /pcr/junit-truth/PKGBUILD
parent7eee3a5c23d63e386c4294e76b2912525f0a8ce0 (diff)
downloadabslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.gz
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.bz2
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.zip
java/* moved to pcr/
Diffstat (limited to 'pcr/junit-truth/PKGBUILD')
-rw-r--r--pcr/junit-truth/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/pcr/junit-truth/PKGBUILD b/pcr/junit-truth/PKGBUILD
new file mode 100644
index 000000000..61a0ee469
--- /dev/null
+++ b/pcr/junit-truth/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=junit-truth
+pkgdesc="Assertion/Proposition framework for Java unit tests."
+url="https://github.com/truth0/truth"
+license=('Apache2')
+
+#_pkgver=0.5.0-beta1
+#pkgver=${_pkgver//-/.}
+#_tag=v${_pkgver}
+
+#pkgver=0.7.0
+#_tag=truth-rel-${pkgver//./-}
+
+#pkgver=0.8
+#_tag=truth-${pkgver}
+
+#pkgver=0.9
+#_tag=release_${pkgver//./_}
+
+pkgver=0.10
+_tag=release_${pkgver//./_}
+
+pkgrel=1
+arch=('any')
+depends=('junit')
+makedepends=('maven' 'jh')
+conflicts=('openjdk6') # OpenJDK bug 100167 conflicts
+source=("$pkgname::git://github.com/truth0/truth.git#tag=$tag")
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ jh checksource
+ mvn package
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ install -d "${pkgdir}"/usr/share/java/${pkgname}
+ JAR=${pkgname}-${pkgver}.jar
+ install -Dm 644 target/${JAR} "${pkgdir}"/usr/share/java/${pkgname}
+ ln -s ${pkgname}/${JAR} "${pkgdir}"/usr/share/java/${pkgname}.jar
+}
+
+md5sums=('SKIP')