summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c106d8dfa06fa0c4edcb855e656853d06df09a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Dennis Fink <metalgamer@c3l.lu>
# Maintainer: Peter A. Shevtsov <pshevtsov at severusweb dot ru>

pkgname=htmlcompressor
pkgver=1.5.3
pkgrel=2
pkgdesc="HTML compressor and minifier."
arch=(any)
url="http://code.google.com/p/htmlcompressor/"
license=('APACHE')
depends=(java-runtime)
optdepends=('yuicompressor: inline css and javascript compression'
'closure-compiler: inline javascript compression')
source=(
    "http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.jar"
    "htmlcompressor.sh"
    )
sha256sums=('88894e330cdb0e418e805136d424f4c262236b1aa3683e51037cdb66310cb0f9'
            'a6fbcddb13f317332a5d063a233a2cc3d3dbb3e8e32077434f256a70593476e4')

package() {
    cd $srcdir

    install -m644 -D ${pkgname}-${pkgver}.jar \
        $pkgdir/usr/share/java/$pkgname/${pkgname}.jar
    install -m755 -D htmlcompressor.sh $pkgdir/usr/bin/htmlcompressor
    ln -s ../closure-compiler/closure-compiler.jar \
        $pkgdir/usr/share/java/$pkgname/compiler.jar
    ln -s ../yuicompressor.jar \
        $pkgdir/usr/share/java/$pkgname/yuicompressor.jar
}