1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
3 _gemname="${pkgname#ruby-}"
6 pkgdesc="A command-line tool to resolve dependencies, merge, and minify CSS and JavaScript files"
8 url="https://github.com/cjohansen/juicer/"
10 depends=("ruby-cmdparse" "ruby-rubyzip" "ruby-nokogiri")
11 makedepends=("rubygems")
12 optdepends=("yuicompressor: compress CSS and JavaScript files"
13 "closure-compiler: check and optimize JavaScript code"
14 "jslint: verify JavaScript syntax")
15 source=("http://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
16 noextract=("${_gemname}-${pkgver}.gem")
17 sha1sums=("6cb37e31430b95968c09f59630dc08bfda9d9f3c")
22 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
24 gem install --ignore-dependencies --verbose -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
26 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
27 ln -s "${_gemdir}/gems/${_gemname}-${pkgver}/Readme.rdoc" "${pkgdir}/usr/share/licenses/${pkgname}/"
30 # vim:set ts=2 sw=2 et: