diff --git a/srcpkgs/hub/template b/srcpkgs/hub/template index 35454f4845c..849652ad7dc 100644 --- a/srcpkgs/hub/template +++ b/srcpkgs/hub/template @@ -1,10 +1,10 @@ # Template file for 'hub' pkgname=hub version=2.6.0 -revision=1 +revision=2 build_style=go go_import_path=github.com/github/hub -hostmakedepends="git" +hostmakedepends="git ruby-ronn" short_desc="Command line tool for Github" maintainer="Enno Boland " license="MIT" @@ -14,8 +14,18 @@ distfiles="https://github.com/github/hub/archive/v${version}.tar.gz" checksum=c4df5ce953aa5dd5c4fa57ada96559b4b76bbd30a9e961e10e881be869cf4f2c post_install() { - # Requires ronn - # vman man/${pkgname}.1 + sed -i 's@1.ronn bin/ronn@1.ronn@;s@bin/ronn@ronn@' Makefile + + make man-pages + + for m in share/man/man1/*.1; do + vman $m + done + + for d in share/man/man1/*.html; do + vdoc $d + done + vlicense LICENSE vinstall etc/hub.zsh_completion 644 usr/share/zsh/site-functions _hub