From 562f76213a6096cd2a87dfbf58caa16fbadd70e4 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 3 Nov 2018 15:48:39 -0300 Subject: [PATCH] hub: fix cross --- srcpkgs/hub/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/hub/template b/srcpkgs/hub/template index 849652ad7d..760638757c 100644 --- a/srcpkgs/hub/template +++ b/srcpkgs/hub/template @@ -13,9 +13,17 @@ changelog="https://github.com/github/hub/releases" distfiles="https://github.com/github/hub/archive/v${version}.tar.gz" checksum=c4df5ce953aa5dd5c4fa57ada96559b4b76bbd30a9e961e10e881be869cf4f2c +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" hub" +fi + post_install() { sed -i 's@1.ronn bin/ronn@1.ronn@;s@bin/ronn@ronn@' Makefile + if [ "$CROSS_BUILD" ]; then + sed -i 's|bin/hub|hub|g' Makefile + fi + make man-pages for m in share/man/man1/*.1; do