Skip to content

Instantly share code, notes, and snippets.

@mythmon
Created January 27, 2012 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mythmon/1690513 to your computer and use it in GitHub Desktop.
Save mythmon/1690513 to your computer and use it in GitHub Desktop.
# Maintainer: Mike Cooper <mythmon[at]gmail.com>
# Contributor: Danny Tatom <dannytatom[at]gmail.com>
# Contributor: Chris Wanstrath <chris[at]ozmm.org>
# Contributor: Felix Rohrbach <fxrh@gmx.de>
pkgname=hub
pkgver=1.8.1
pkgrel=1
pkgdesc="Introduces git to GitHub"
arch=('any')
url="http://defunkt.io/hub"
depends=('git' 'ruby')
makedepends=()
license=('MIT')
groups=()
source=("https://github.com/defunkt/hub/tarball/v${pkgver}"
'LICENSE')
md5sums=('e552caf1af3b4d007fd5d19ef25cc682'
'c1e5fa6106c5bb66e1140364a34deab3')
_rubyver='1.9.1'
build() {
/bin/true
}
package() {
cd ${srcdir}
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd defunkt-${pkgname}-*
install -m755 -D "bin/hub" "${pkgdir}/usr/bin/${pkgname}"
for file in args commands context json runner standalone version; do
install -m644 -D lib/hub/${file}.rb ${pkgdir}/usr/lib/ruby/site_ruby/${_rubyver}/${pkgname}/${file}
done
gzip -c "man/hub.1" > hub.1.gz
install -D -m644 hub.1.gz "${pkgdir}/usr/share/man/man1/hub.1.gz"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment