summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormetalgamer2015-08-09 13:36:02 +0200
committermetalgamer2015-08-09 13:36:02 +0200
commitddb1d2993bef6d45a9eac4054225132dd84cdc19 (patch)
treea55630c2951cc6d94c25c8ecbb1e6320dee2fe9a
downloadaur-ddb1d2993bef6d45a9eac4054225132dd84cdc19.tar.gz
Inital import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
-rw-r--r--htmlcompressor.sh3
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..320c2bf94e1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = htmlcompressor
+ pkgdesc = HTML compressor and minifier.
+ pkgver = 1.5.3
+ pkgrel = 2
+ url = http://code.google.com/p/htmlcompressor/
+ arch = any
+ license = APACHE
+ depends = java-runtime
+ optdepends = yuicompressor: inline css and javascript compression
+ optdepends = closure-compiler: inline javascript compression
+ source = http://htmlcompressor.googlecode.com/files/htmlcompressor-1.5.3.jar
+ source = htmlcompressor.sh
+ sha256sums = 88894e330cdb0e418e805136d424f4c262236b1aa3683e51037cdb66310cb0f9
+ sha256sums = a6fbcddb13f317332a5d063a233a2cc3d3dbb3e8e32077434f256a70593476e4
+
+pkgname = htmlcompressor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c106d8dfa0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
diff --git a/htmlcompressor.sh b/htmlcompressor.sh
new file mode 100644
index 00000000000..718b11c79b3
--- /dev/null
+++ b/htmlcompressor.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+"$JAVA_HOME/bin/java" -jar /usr/share/java/htmlcompressor/htmlcompressor.jar $@