diff options
author | Rahil Bhimjiani <rahil3108@gmail.com> | 2023-11-06 08:37:30 +0530 |
---|---|---|
committer | Rahil Bhimjiani <rahil3108@gmail.com> | 2023-11-06 08:37:30 +0530 |
commit | 5276f0bf01e43f55b2c8fdc192fb04f89aa53b70 (patch) | |
tree | 681cd68eda7e4a838f29e6cfbb78ab90084e398b /net-wireless/bluetuith | |
parent | net-wireless/bluetuith: add 0.1.9 & update live (diff) | |
download | guru-5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.tar.gz guru-5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.tar.bz2 guru-5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.zip |
net-wireless/bluetuith: fixup d94921370e1d85fa510b2e0fd4e9fd064c9e
Fix version info not showing on running bluetuith --version
Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
Diffstat (limited to 'net-wireless/bluetuith')
-rw-r--r-- | net-wireless/bluetuith/bluetuith-0.1.9.ebuild | 7 | ||||
-rw-r--r-- | net-wireless/bluetuith/bluetuith-9999.ebuild | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/net-wireless/bluetuith/bluetuith-0.1.9.ebuild b/net-wireless/bluetuith/bluetuith-0.1.9.ebuild index 9c46f9a06..93dc6512a 100644 --- a/net-wireless/bluetuith/bluetuith-0.1.9.ebuild +++ b/net-wireless/bluetuith/bluetuith-0.1.9.ebuild @@ -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() { diff --git a/net-wireless/bluetuith/bluetuith-9999.ebuild b/net-wireless/bluetuith/bluetuith-9999.ebuild index 9c46f9a06..93dc6512a 100644 --- a/net-wireless/bluetuith/bluetuith-9999.ebuild +++ b/net-wireless/bluetuith/bluetuith-9999.ebuild @@ -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() { |