matterbridge - preparing step to build from source using go

This commit is contained in:
2022-04-04 22:56:10 +02:00
parent a1e0217759
commit b7e798eeca

View File

@@ -117,6 +117,40 @@ step_12() {
}
versionNow=$([ ! -z $(which ${toolName}) ] && ${toolName} --version | sed 's/.*version: \([0-9.]\+\).*/\1/')
step_30_info() { echo "(TODO) Build from source"; }
step_30_alias() { ALIAS="build"; }
step_30() {
local goVer="$(curl --silent -L https://go.dev/doc/devel/release | \
grep --max-count 1 -E "go[[:digit:]\.]{3,}" |\
sed 's/.*go\([[:digit:]\.]\+\).*/\1/g')"
local goArch="armv6l" #arm64"
local goDownUrl="https://go.dev/dl/go${goVer}.linux-${goArch}.tar.gz"
local mabrTags="\
noapi,\
nodiscord,\
nogitter,\
noharmony,\
noirc,\
nokeybase,\
nomattermost,\
nomsteams,\
norocketchat,\
nonctalk,\
nomumble,\
noslack,\
nosshchat,\
notelegram,\
notwitch,\
novk,\
nozulip,\
whatsappmulti"
echoseq "Download go${goVer}: ${goDownUrl}"
echoseq "go install -tags ${mabrTags} github.com/42wim/matterbridge@master"
echoseq "step backup"
echoseq "cp -ar ${HOME}/go/bin/matterbridge /usr/local/bin"
}
# Sequence Revision
VERSION_SEQREV=15