public
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
# 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"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.