hub: fix cross

This commit is contained in:
maxice8 2018-11-03 15:48:39 -03:00
parent 36a60895da
commit 562f76213a
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 8 additions and 0 deletions

View File

@ -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