summaryrefslogtreecommitdiff
path: root/libre/junit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/junit/PKGBUILD')
-rw-r--r--libre/junit/PKGBUILD66
1 files changed, 34 insertions, 32 deletions
diff --git a/libre/junit/PKGBUILD b/libre/junit/PKGBUILD
index 8b0682172..19cde0ec5 100644
--- a/libre/junit/PKGBUILD
+++ b/libre/junit/PKGBUILD
@@ -1,48 +1,50 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (Arch): Guillaume ALAUX <Guillaume at Arch Linux dot org>
# Rationale: Arch version isn't built from source.
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=junit
-pkgver=4.11
-pkgdesc="Automated testing framework for Java"
-url="http://www.junit.org/"
-license=('CPL')
-
-pkgrel=4.parabola1
+pkgver=4.12
+pkgrel=1.parabola1
+pkgdesc='Simple JVM framework to write repeatable tests'
arch=('any')
+url='http://www.junit.org/'
+license=('EPL')
depends=('java-runtime' 'java-hamcrest')
-makedepends=('apache-ant' 'jakarta-oro' 'jh')
-
-source=("https://repo.parabola.nu/other/$pkgname/$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
+makedepends=('apache-ant' 'jh')
+source=("https://github.com/junit-team/${pkgname}/archive/r${pkgver}.tar.gz"
+ "build.xml")
+sha256sums=('61a16d8abf5a0d2d35a0c69a278e457a8b1f7b3726813c00c4775d39bce0dce4'
+ 'SKIP')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-r${pkgver}"
+ rm -rv lib/*.jar
+ mv ../build.xml .
+ ln -sf /usr/share/java/hamcrest-core.jar lib/hamcrest-core-1.3.jar
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-r${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
+ ant dist
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}${pkgver}"
+ cd "${srcdir}/${pkgname}-r${pkgver}"
+
+ # Install license file
+ install -Dm644 LICENSE-junit.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+
+ # Install documentation
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r "${pkgname}${pkgver}/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
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
+ jh mvn-install ${pkgname} ${pkgname} ${pkgver} \
+ pom.xml \
+ "${pkgname}${pkgver}/${pkgname}-${pkgver}.jar" \
+ "${pkgname}.jar"
+
+ ln -s "/usr/share/java/${pkgname}.jar" \
+ "${pkgdir}/usr/share/java/${pkgname}-${pkgver}.jar"
}