From 001262c0fff1944e1238362d510051bb50bb6b13 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Wed, 16 Oct 2024 18:04:31 -0500 Subject: slackbuild: Add version --- contrib/slackbuild/mirror.SlackBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/slackbuild/mirror.SlackBuild b/contrib/slackbuild/mirror.SlackBuild index 66d6234..9dadca2 100644 --- a/contrib/slackbuild/mirror.SlackBuild +++ b/contrib/slackbuild/mirror.SlackBuild @@ -47,7 +47,7 @@ export GOPATH="$TMP/$PRGNAM-$VERSION.gopath" export GOBIN="$PKG/usr/sbin" go install \ - -ldflags="-linkmode external -extldflags -static" \ + -ldflags="-linkmode external -extldflags -static -X main.Version=$VERSION" \ -a -x ./... mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION" -- cgit v1.2.3