updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-lightning / PKGBUILD
blob27625d253c361f122e455521160b0f68b62f736d
1 # Contributor: Arian Kuschki  <arian.spam-trap-remove-mekuschki at gmail dot com>
2 pkgname=ruby-lightning
3 pkgver=0.3.2
4 pkgrel=8
5 pkgdesc="Lightning is a commandline framework that generates shell functions which wrap around commands to autocomplete and translate full paths by their basenames."
6 arch=('any')
7 url="http://tagaholic.me/lightning"
8 license=(MIT)
9 depends=(ruby)
10 makedepends=('rubygems')
11 install=ruby-lightning.install
12 source=("http://gems.rubyforge.org/gems/lightning-${pkgver}.gem")
13 noextract=("lightning-${pkgver}.gem")
14 md5sums=('f8afac99fdcc8c7c4171f048830b57cf')
17 build() {
18   cd $srcdir
19   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
20   gem install --ignore-dependencies -i "$pkgdir$_gemdir" lightning-$pkgver.gem \
21   -n "$pkgdir/usr/bin"
23   mkdir -p ${pkgdir}/usr/share/licenses/ruby-lightning
24   ln -s ${pkgdir}/usr/lib/ruby/gems/1.9.1/gems/lightning-0.3.2/LICENSE.txt ${pkgdir}/usr/share/licenses/ruby-lightning/LICENSE
27 # vim:set ts=2 sw=2 et: