Skip to content

Instantly share code, notes, and snippets.

@nogweii
Created March 9, 2009 02:30
Show Gist options
  • Select an option

  • Save nogweii/76062 to your computer and use it in GitHub Desktop.

Select an option

Save nogweii/76062 to your computer and use it in GitHub Desktop.
# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
pkgname=github-gem
pkgver=0.3.4
pkgrel=1
pkgdesc="Defunkt's Github ruby gem. The official 'github' command line helper"
arch=(any)
url="http://github.com/defunkt/github-gem"
license=('MIT')
depends=(ruby-json_pure)
makedepends=(rubygems)
source=(http://gems.github.com/gems/defunkt-github-$pkgver.gem
http://github.com/defunkt/github-gem/raw/master/LICENSE)
md5sums=('93c14db1993242fae91e07e6ee255619'
'72ff51a95629f307bd32456b42be5f54')
noextract=(defunkt-github-$pkgver.gem)
build() {
gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
cd $srcdir
# $(...) important stuff below!!!!
gem install --ignore-dependencies -i "$pkgdir$gemdir" defunkt-github-$pkgver.gem
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/github-gem/LICENSE"
install -d "$pkgdir/usr/bin"
mv "$pkgdir$gemdir/bin/gh" "$pkgdir$gemdir/bin/github" "$pkgdir/usr/bin/"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment