net-wireless/bluetuith: fixup d94921370e

Fix version info not showing on running bluetuith --version

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
This commit is contained in:
Rahil Bhimjiani
2023-11-06 08:37:30 +05:30
parent d94921370e
commit 5276f0bf01
2 changed files with 12 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ inherit go-module
DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
HOMEPAGE="https://darkhz.github.io/bluetuith"
# MAKE SURE to change these on every update
[[ ${PV} != 9999* ]] && \
GIT_COMMIT="28c0a9f"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then
@@ -50,7 +53,9 @@ src_unpack() {
}
src_compile() {
ego build
# mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml
[[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD)
ego build -ldflags "-X github.com/darkhz/bluetuith/cmd.Version=${PV}@${GIT_COMMIT}"
}
src_test() {

View File

@@ -8,6 +8,9 @@ inherit go-module
DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
HOMEPAGE="https://darkhz.github.io/bluetuith"
# MAKE SURE to change these on every update
[[ ${PV} != 9999* ]] && \
GIT_COMMIT="28c0a9f"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then
@@ -50,7 +53,9 @@ src_unpack() {
}
src_compile() {
ego build
# mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml
[[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD)
ego build -ldflags "-X github.com/darkhz/bluetuith/cmd.Version=${PV}@${GIT_COMMIT}"
}
src_test() {