1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
5 pkgdesc="Defunkt's Github ruby gem. The official 'github' command line helper"
7 url="http://github.com/defunkt/github-gem"
9 depends=(ruby-json_pure 'ruby-highline>=1.5.1' 'ruby-text-format>=1.0.0')
10 makedepends=(rubygems)
11 source=(http://rubygems.org/downloads/github-$pkgver.gem
12 http://github.com/defunkt/github-gem/raw/master/LICENSE)
13 md5sums=('1a1ed131c5ed49cc9dd2e0656d594f78'
14 'ce063f8e66636d8d69e81d806487bd1e')
15 noextract=(defunkt-github-$pkgver.gem)
19 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21 gem install --ignore-dependencies -i "$pkgdir$_gemdir" github-$pkgver.gem
22 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
24 install -d "$pkgdir/usr/bin"
25 mv "$pkgdir$_gemdir/bin/gh" "$pkgdir$_gemdir/bin/github" "$pkgdir/usr/bin/"
26 rmdir "$pkgdir$_gemdir/bin"
29 # vim:set ts=2 sw=2 et: