Date: Monday, July 21, 2014 @ 20:35:26
  Author: idevolder
Revision: 116072

closure-compiler :: 20140625

- source moved to github
- build with ant
- run tests

Modified:
  closure-compiler/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-07-21 17:07:55 UTC (rev 116071)
+++ PKGBUILD    2014-07-21 18:35:26 UTC (rev 116072)
@@ -2,7 +2,7 @@
 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
 # Contributor: Bram Schoenmakers <m...@bramschoenmakers.nl>
 pkgname=closure-compiler
-pkgver=20140407
+pkgver=20140625
 pkgrel=1
 pkgdesc="Performs checking, instrumentation and optimizations on Javascript 
code."
 arch=('any')
@@ -9,12 +9,25 @@
 url="http://code.google.com/closure";
 license=('APACHE')
 depends=('java-runtime')
-source=("http://dl.google.com/$pkgname/compiler-$pkgver.tar.gz";)
+makedepends=('apache-ant')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz";)
 
+build() {
+       cd "$pkgname-$pkgver"
+
+       ant jar
+}
+
+check() {
+       cd "$pkgname-$pkgver"
+
+       ant test
+}
+
 package() {
-       cd $srcdir
+       cd "$pkgname-$pkgver"
 
-       install -m755 -D compiler.jar 
"$pkgdir/usr/share/java/closure-compiler/closure-compiler.jar"
+       install -m755 -D build/compiler.jar 
"$pkgdir/usr/share/java/closure-compiler/closure-compiler.jar"
        mkdir $pkgdir/usr/bin
        echo '#!/bin/sh
        "$JAVA_HOME/bin/java" -jar 
/usr/share/java/closure-compiler/closure-compiler.jar $@' > 
"$pkgdir/usr/bin/closure"
@@ -21,4 +34,4 @@
        chmod +x "$pkgdir/usr/bin/closure"
 }
 
-sha256sums=('ee640b598e7ead8a90b15702afffcda6626a07a6e5f9032623fe6be48b8ca933')
+sha256sums=('3b7235a3ec4a32cd0fcca6150c8b97ce20a8dc381a4c1bfd5f30ca0eff440006')

Reply via email to