updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / github-gem / PKGBUILD
blobfc6ca7b562a6c58bc4b7201366a0a6f770c0cc69
1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
2 pkgname=github-gem
3 pkgver=0.4.2
4 pkgrel=1
5 pkgdesc="Defunkt's Github ruby gem. The official 'github' command line helper"
6 arch=(any)
7 url="http://github.com/defunkt/github-gem"
8 license=('MIT')
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)
17 build() {
18   cd "$srcdir"
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: