1 # Contributor: Guilherme "nirev" Nogueira <guilherme@nirev.org>
2 # vim:set ts=2 sw=2 et:
4 pkgname=ruby-${_gemname}
7 pkgdesc="ruby gem; Leaner CSS."
9 url="http://www.lesscss.org/"
11 depends=('ruby' 'ruby-mutter' 'ruby-treetop')
12 makedepends=('rubygems')
13 source=("http://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
14 noextract=("${_gemname}-$pkgver.gem")
18 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
19 gem install --ignore-dependencies -i "$pkgdir$_gemdir" ${_gemname}-$pkgver.gem
21 install -d "$pkgdir/usr/bin"
22 mv "$pkgdir$_gemdir/bin/lessc" "$pkgdir/usr/bin/"
23 rmdir "$pkgdir$_gemdir/bin"
25 md5sums=('de6924111ca1f4601f813d376d6f1746')