mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user