diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
commit | 462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch) | |
tree | 11d4d3f054aae9ffd869adc634054f64a16d83b8 /java/junit/PKGBUILD | |
parent | 748e32a3a886569b58a27003e85b76be5746153d (diff) |
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'java/junit/PKGBUILD')
-rw-r--r-- | java/junit/PKGBUILD | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/java/junit/PKGBUILD b/java/junit/PKGBUILD deleted file mode 100644 index 04dbcb2ac..000000000 --- a/java/junit/PKGBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Maintainer (Arch): Guillaume ALAUX <Guillaume at Arch Linux dot org> - -pkgname=junit -pkgver=4.11 -pkgdesc="Automated testing framework for Java" -url="http://www.junit.org/" -license=('CPL') - -pkgrel=3.2 -arch=('any') -depends=('java-runtime' 'java-hamcrest') -makedepends=('apache-ant' 'jakarta-oro' 'jh') - -source=("libre://$pkgname-$pkgver.tar.gz") -md5sums=('cdaa9856761201de81a61aecb8cfcc9c') - -mksource=("$pkgname-$pkgver::git://github.com/junit-team/junit.git#tag=r$pkgver") -mkmd5sums=('SKIP') -mksource() { - cd "${srcdir}/${pkgname}-${pkgver}" - find . -name '*.jar' -delete -} - -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - ln -sf /usr/share/java/jakarta-oro.jar build/lib/ - ln -sf /usr/share/java/hamcrest-core.jar lib/hamcrest-core-1.3.jar - - ant -Dversion-status='' jars - for artifact in junit junit-dep; do - sed \ - -e "s|@artifactID@|$artifact|" \ - -e "s|@version@|$pkgver|" \ - < build/maven/$artifact-pom-template.xml > $pkgname$pkgver/$artifact-$pkgver.pom - done -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}${pkgver}" - - export DESTDIR="$pkgdir" - jh mvn-install $pkgname junit $pkgver junit-$pkgver.{pom,jar} junit-$pkgver.jar - jh mvn-install $pkgname junit-dep $pkgver junit-dep-$pkgver.pom - ln -s ${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}.jar -} |