Peter A. Shevtsov avatar Peter A. Shevtsov committed dc308d9

Corrected depends. Made versionless symlink

Comments (0)

Files changed (2)

yuicompressor/PKGBUILD

+# Contributor: Vladimir Ermakov <vooon341@gmail.com>
+# Maintainer: Peter A. Shevtsov <pshevtsov at severusweb dot ru>
+
+pkgname=yuicompressor
+pkgver=2.4.7
+pkgrel=3
+pkgdesc="CSS and Javascript compressor"
+arch=("any")
+url="http://developer.yahoo.com/yui/compressor/"
+license=("BSD")
+depends=("java-runtime")
+source=("http://yui.zenfs.com/releases/${pkgname}/${pkgname}-${pkgver}.zip"
+        "yuicompressor.sh")
+sha1sums=('64d209cae769cee2b89217ba226543001c59d27b'
+          "1b434466d0d5b0ba23830e2a60c1a96d3f5472ac")
+
+package() {
+  sed -i "s|x\.y\.z|${pkgver}|" "${pkgname}.sh"
+
+  install -D -m644  "${srcdir}/${pkgname}-${pkgver}/build/${pkgname}-${pkgver}.jar" \
+                    "${pkgdir}/usr/share/java/${pkgname}-${pkgver}.jar"
+  install -D -m755  "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+
+  install -D -m644  "${srcdir}/${pkgname}-${pkgver}/LICENSE.TXT" \
+                    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
+  ln -s "${pkgname}-${pkgver}.jar" \
+    "${pkgdir}/usr/share/java/${pkgname}.jar"
+}
+
+# vim:set ts=2 sw=2 et:

yuicompressor/yuicompressor.sh

+#!/bin/bash
+
+java -jar /usr/share/java/yuicompressor-x.y.z.jar "$@"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.