summaryrefslogtreecommitdiff
path: root/pcr/junit-truth/PKGBUILD
blob: 61a0ee4698af8b9e06983ce2c3d558bc4f5f1725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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')