mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
hub: rebuild for go-1.23.0
This commit is contained in:
parent
7da850ec48
commit
ddf580947d
1 changed files with 25 additions and 22 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hub'
|
# Template file for 'hub'
|
||||||
pkgname=hub
|
pkgname=hub
|
||||||
version=2.14.2
|
version=2.14.2
|
||||||
revision=4
|
revision=5
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=github.com/github/hub
|
go_import_path=github.com/github/hub
|
||||||
hostmakedepends="git groff"
|
hostmakedepends="git groff"
|
||||||
|
@ -18,30 +18,33 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
# needs col(1), which is only built on glibc
|
||||||
vsed -e 's|bin/hub|hub|g' -i Makefile
|
if [ "$XBPS_TARGET_LIBC" = glibc ]; then
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
vsed -e 's|bin/hub|hub|g' -i Makefile
|
||||||
|
|
||||||
(
|
(
|
||||||
# Build md2roff ourselves since it needs to be executed on
|
# Build md2roff ourselves since it needs to be executed on
|
||||||
# the host, also use a subshell so we don't modify the
|
# the host, also use a subshell so we don't modify the
|
||||||
# environment of the main program
|
# environment of the main program
|
||||||
unset GOARCH GOARM GOOS
|
unset GOARCH GOARM GOOS
|
||||||
export CC="$CC_FOR_BUILD"
|
export CC="$CC_FOR_BUILD"
|
||||||
export CFLAGS="$CFLAGS_FOR_BUILD"
|
export CFLAGS="$CFLAGS_FOR_BUILD"
|
||||||
go build -o bin/md2roff github.com/github/hub/md2roff-bin
|
go build -o bin/md2roff github.com/github/hub/md2roff-bin
|
||||||
)
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
make man-pages
|
||||||
|
|
||||||
|
for m in share/man/man1/*.1; do
|
||||||
|
vman $m
|
||||||
|
done
|
||||||
|
|
||||||
|
for d in share/doc/hub-doc/*.html; do
|
||||||
|
vdoc $d
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make man-pages
|
|
||||||
|
|
||||||
for m in share/man/man1/*.1; do
|
|
||||||
vman $m
|
|
||||||
done
|
|
||||||
|
|
||||||
for d in share/doc/hub-doc/*.html; do
|
|
||||||
vdoc $d
|
|
||||||
done
|
|
||||||
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
vinstall etc/hub.zsh_completion 644 usr/share/zsh/site-functions _hub
|
vinstall etc/hub.zsh_completion 644 usr/share/zsh/site-functions _hub
|
||||||
|
|
Loading…
Add table
Reference in a new issue