Files
Aaron Madlon-Kay 0a9437e290 golang ports: specify github.tarball_from archive in portgroup
For the main distfile only. Vendors will need a bigger, separate migration.

Ports that don't specify are set to `tarball`.
2025-03-07 07:03:15 +09:00

48 lines
1.7 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup golang 1.0
go.setup github.com/caarlos0/timer 1.4.5 v
go.offline_build no
revision 0
description A \`sleep\` with progress
long_description {*}${description}
categories sysutils
installs_libs no
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 02df71e543f4a41c1e532a3e3ef0e2c961ba7ba3 \
sha256 d4cbc30c118b8bd79e270c1cb7bec75a2431204c221d9c3bfea5e0fd86205e5b \
size 9046
build.cmd \
"go build && ./scripts/completions.sh && ./scripts/manpages.sh"
destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
# Install man page
copy ${worksrcpath}/manpages/${name}.1.gz \
${destroot}${prefix}/share/man/man1/
# Install bash completion
xinstall -d ${destroot}${prefix}/share/bash-completion/completions
xinstall -m 0644 ${worksrcpath}/completions/${name}.bash \
${destroot}${prefix}/share/bash-completion/completions/${name}
# Install zsh completion
xinstall -d ${destroot}${prefix}/share/zsh/site-functions
xinstall -m 0644 ${worksrcpath}/completions/${name}.zsh \
${destroot}${prefix}/share/zsh/site-functions/_${name}
# Install fish completion
xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall -m 0644 ${worksrcpath}/completions/${name}.fish \
${destroot}${prefix}/share/fish/vendor_completions.d/${name}.fish
}