updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ruby-juicer / PKGBUILD
blobcc7024429b9b9b352359232e72dd2f1736ad17a9
1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
2 pkgname=ruby-juicer
3 _gemname="${pkgname#ruby-}"
4 pkgver=1.0.13
5 pkgrel=1
6 pkgdesc="A command-line tool to resolve dependencies, merge, and minify CSS and JavaScript files"
7 arch=("any")
8 url="https://github.com/cjohansen/juicer/"
9 license=("MIT")
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")
19 package() {
20   cd "$srcdir"
21   export HOME="/tmp"
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: