diff options
Diffstat (limited to 'java/not-working/junit-truth/PKGBUILD')
-rw-r--r-- | java/not-working/junit-truth/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/java/not-working/junit-truth/PKGBUILD b/java/not-working/junit-truth/PKGBUILD new file mode 100644 index 000000000..61a0ee469 --- /dev/null +++ b/java/not-working/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') |