[arch-commits] Commit in junit/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Sat Jul 17 07:27:09 UTC 2010


    Date: Saturday, July 17, 2010 @ 03:27:08
  Author: eric
Revision: 85657

upgpkg: junit 4.8.2-1
Upstream update, Switched to 'any' arch, Fixed permissions of license file

Modified:
  junit/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-17 06:46:01 UTC (rev 85656)
+++ PKGBUILD	2010-07-17 07:27:08 UTC (rev 85657)
@@ -3,32 +3,30 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=junit
-pkgver=4.7
+pkgver=4.8.2
 pkgrel=1
 pkgdesc="Automated testing framework for Java"
-arch=('i686' 'x86_64')
+arch=('any')
 url="http://www.junit.org/"
 license=('custom')
 depends=('java-runtime')
 makedepends=('fastjar' 'apache-ant')
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}${pkgver}.zip
-	build.xml)
-md5sums=('fa74a6bb1ff143cc2baa14f5a22e0e85'
-         'd8bd6d5961386ce602241ed7f87dd5d2')
+source=(http://github.com/downloads/KentBeck/${pkgname}/${pkgname}${pkgver}.zip build.xml)
+md5sums=('1fea538f71f7eeae13c54a9e03469eae' 'd8bd6d5961386ce602241ed7f87dd5d2')
+sha1sums=('15209b0933816c8e940a8375459be6e61e5f1662' '8fbc1b4c309407c778c0d82e70ad73f576b71299')
 
-build() {
-  cd ${srcdir}/${pkgname}${pkgver}
-  jar xf ${pkgname}-${pkgver}-src.jar || return 1
+package() {
+  cd "${srcdir}/${pkgname}${pkgver}"
+  jar xf ${pkgname}-${pkgver}-src.jar
   rm -f ${pkgname}-${pkgver}-src.jar
-  cp ${srcdir}/build.xml . || return 1
-  find . -name \*.class -delete || return 1
-  find . -name \*.jar -delete || return 1
-
+  cp "${srcdir}/build.xml" .
+  find . -name \*.class -delete
+  find . -name \*.jar -delete
   . /etc/profile.d/apache-ant.sh
-  ant dist || return 1
-  install -d ${pkgdir}/usr/share/java ${pkgdir}/usr/lib
-  install -m644 ${pkgname}4.4/junit.jar ${pkgdir}/usr/share/java || return 1
+  ant dist
+  install -d "${pkgdir}/usr/share/java" "${pkgdir}/usr/lib"
+  install -m644 junit4.4/junit.jar "${pkgdir}/usr/share/java"
   # Do this for ant, though ant needs to have these files in /usr/share/java, but that will get fixed later.
-  ln -sf ../share/java/junit.jar ${pkgdir}/usr/lib/junit.jar || return 1
-  install -D cpl-v10.html ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
+  ln -sf ../share/java/junit.jar "${pkgdir}/usr/lib/junit.jar"
+  install -D -m644 cpl-v10.html "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.html"
 }




More information about the arch-commits mailing list