updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / closure-compiler / PKGBUILD
blob5d4be7488919ee7bad949849fd9d5b745106295d
1 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
2 # Contributor: Bram Schoenmakers <me@bramschoenmakers.nl>
3 pkgname=closure-compiler
4 pkgver=20111114
5 pkgrel=1
6 pkgdesc="Performs checking, instrumentation and optimizations on Javascript code."
7 arch=('any')
8 url="http://code.google.com/closure"
9 license=('APACHE')
10 depends=(java-runtime)
11 source=("http://${pkgname}.googlecode.com/files/compiler-${pkgver}.tar.gz")
13 package() {
14         cd $srcdir
16         install -m755 -D compiler.jar $pkgdir/usr/share/java/closure-compiler/closure-compiler.jar
17         mkdir $pkgdir/usr/bin
18         echo '#!/bin/sh
19         "$JAVA_HOME/bin/java" -jar /usr/share/java/closure-compiler/closure-compiler.jar $@' > $pkgdir/usr/bin/closure
20         chmod +x $pkgdir/usr/bin/closure
22 sha256sums=('fe73d3c94006e2b9e9fb8447afc08e0772548ed88f11b0e93bd9fba84d45efdf')