1 # Maintainer: Peter A. Shevtsov <pshevtsov at severusweb dot ru>
5 pkgdesc="HTML compressor and minifier."
7 url="http://code.google.com/p/htmlcompressor/"
10 optdepends=('yuicompressor: inline css and javascript compression'
11 'closure-compiler: inline javascript compression')
12 source=("http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.jar")
13 sha256sums=('dd1a0315bd0ed74e6611c18c8e0a87b78fdd0b2eabe650eeca1f51bb0c75ce4a')
18 install -m644 -D ${pkgname}-${pkgver}.jar \
19 $pkgdir/usr/share/java/$pkgname/${pkgname}.jar
20 mkdir -p $pkgdir/usr/bin
22 "$JAVA_HOME/bin/java" -jar /usr/share/java/htmlcompressor/htmlcompressor.jar $@' > \
23 $pkgdir/usr/bin/$pkgname
24 chmod +x $pkgdir/usr/bin/$pkgname
25 ln -s ../closure-compiler/closure-compiler.jar \
26 $pkgdir/usr/share/java/$pkgname/compiler.jar
27 ln -s ../yuicompressor-2.4.2.jar \
28 $pkgdir/usr/share/java/$pkgname/yuicompressor.jar