From 602dd1b2f2f68c6b8e44338ecffea950eabed18d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 21 Jun 2013 23:51:50 -0600 Subject: java/junit: clean up, update (and add dependency) --- java-ugly/junit/PKGBUILD | 55 ------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 java-ugly/junit/PKGBUILD (limited to 'java-ugly') diff --git a/java-ugly/junit/PKGBUILD b/java-ugly/junit/PKGBUILD deleted file mode 100644 index 7204cd5c9..000000000 --- a/java-ugly/junit/PKGBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Maintainer: Luke Shumaker -# Maintainer (Arch): Guillaume ALAUX - -pkgname=junit -pkgver=4.10 -pkgrel=1 -pkgdesc="Automated testing framework for Java" -arch=('any') -url="http://www.junit.org/" -license=('CPL') -depends=('java-runtime') -makedepends=('apache-ant' 'jh') -source=("$pkgname::git://github.com/KentBeck/junit.git#tag=r$pkgver") - -mksource() { - cd "${srcdir}/${pkgname}" - #find . -name '*.jar' -delete - - # Shut up some warnings from javac 1.7 - sed -ri 's|target="([0-9.]+)"|\0 source="\1"|' build.xml -} - -build() { - mksource - cd "${srcdir}/${pkgname}" - - # Shut up some warnings from javac 1.7 - sed -ri 's|target="([0-9.]+)"$|\0 source="\1"|' build.xml - - ant jars - for pkg in junit junit-dep; do - sed \ - -e "s|@artifactID@|$pkg|" \ - -e "s|@version@|$pkgver|" \ - < build/maven/pom-template.xml > $pkgname$pkgver/$pkg-$pkgver.pom - done -} - -package() { - cd "${srcdir}/${pkgname}" - install -Dm644 cpl-v10.html "$pkgdir/usr/share/licenses/junit/cpl-v10.html" - - cd "${srcdir}/${pkgname}/${pkgname}${pkgver}" - - export DESTDIR="$pkgdir" - jh mvn-install $pkgname junit $pkgver junit-$pkgver.{jar,pom} - jh mvn-install $pkgname junit-dep $pkgver junit-dep-$pkgver.{jar,pom} - install -d "${pkgdir}/usr/share/java/${pkgname}" - ln -s `jh mvn-basename $pkgname junit $pkgver`.jar "${pkgdir}/usr/share/java/${pkgname}" - ln -s `jh mvn-basename $pkgname junit-dep $pkgver`.jar "${pkgdir}/usr/share/java/${pkgname}" - ln -s ${pkgname}/${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}.jar - ln -s ${pkgname}/${pkgname}-dep-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}-dep.jar -} - -md5sums=('SKIP') -- cgit v1.2.3-2-g168b