net-wireless/bluetuith: update to 0.2.2, smaller deps tar, xz->zstd

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
Rahil Bhimjiani
2024-04-08 10:25:24 +05:30
parent f000b22259
commit 4e0c4bac37
3 changed files with 85 additions and 5 deletions

View File

@@ -1,16 +1,16 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
inherit go-module unpacker
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="ffe8681"
GIT_COMMIT="dd21a9c"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then
@@ -18,7 +18,7 @@ if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/darkhz/bluetuith.git"
else
SRC_URI="https://github.com/darkhz/bluetuith/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz"
SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.zst -> ${P}-deps.tar.zst"
SRC_URI+=" https://github.com/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${PN}-docs-${GIT_DOCUMENTATION_COMMIT}.tar.gz"
KEYWORDS="~amd64 ~arm64"
fi
@@ -48,10 +48,14 @@ src_unpack() {
go-module_live_vendor
else
go-module_src_unpack
unpacker_src_unpack
fi
}
src_prepare() {
[[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
default
}
src_compile() {
# mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml
[[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD)