updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / htmlcompressor / PKGBUILD
blob8686962ba7a048c8e5b2825cf76afd4968e2980c
1 # Maintainer: Peter A. Shevtsov <pshevtsov at severusweb dot ru>
2 pkgname=htmlcompressor
3 pkgver=1.5.2
4 pkgrel=1
5 pkgdesc="HTML compressor and minifier."
6 arch=(any)
7 url="http://code.google.com/p/htmlcompressor/"
8 license=('APACHE')
9 depends=(java-runtime)
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')
15 package() {
16     cd $srcdir
18     install -m644 -D ${pkgname}-${pkgver}.jar \
19         $pkgdir/usr/share/java/$pkgname/${pkgname}.jar
20     mkdir -p $pkgdir/usr/bin
21     echo '#!/bin/sh
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