net-wireless/bluetuith: add 0.1.8 & update live

support arm64

Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com>
This commit is contained in:
Rahil Bhimjiani
2023-10-26 06:28:04 +05:30
parent 03e5a657fb
commit e663027fc2
3 changed files with 76 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
DIST bluetuith-0.1.7-deps.tar.xz 23522828 BLAKE2B e154a25c1cb87eea8c8ecae262ce3518d2736280d6f74ea38cce95016dd70f63d023310d80418511c2989f66bff84873838cfef07437cf9986c9ed4d8eaa79a6 SHA512 c276d28954f53de68d8664275976d448ced101aa5480e71afc4d96d2b84b84907eb0b1351405c051a71d0aeb39e78b2c20b6a37222ae506270dd44f6d298d6c4
DIST bluetuith-0.1.7-docs.tar.gz 2347918 BLAKE2B 17fd92feb5ad39fca00ae47e704b71a3ac421dbc5abdedbb9079775ed4f10a294c7899564b2101ac4ac73b7c8f8128dd1382abb01276c3258d4d4ca99e51a586 SHA512 7a5124e62383470e7f82d66fb1632c19e3e6085b4cd9bbe38088004a21743e9b65ae2bb5a1a837f15e2ca00d6ea3304311eeb0ecd7acf0e62eac1ccfc30c703b
DIST bluetuith-0.1.7.tar.gz 1481408 BLAKE2B 3973aa911fa845416f9d7d2085bddd7e94d7a8f377dfc9214c8fe943be3be2dae3e5ae92e30eb164f3fa96f4cbe9d6299f86c4b3adaef1bd00ae53554c5d9bf5 SHA512 431fc89073562dd0e163759d7a97c38d378e51276c0233f26d8ba455fe346fcfc2c4e9fa102500ff1cfa0ba2b69adb820fd4b11bce2739ce65cfe296cd936a3b
DIST bluetuith-0.1.8-deps.tar.xz 23536984 BLAKE2B 132e6fbd55cac55da2a454e0b97dc95ed17b99f6ca1d08c1c1ad173d196214430845d7cb036f14639f3c67342b3e4de4f13bcabc1577b6367214a146483cb0c9 SHA512 ec1a7d4e06f7e02c24eb2e946ad0d08006d6a6706762df4caa0152473f00f5cac90a9a9db7a5b47d50c6fb6d3c447c82895611b8d1a10116e85d429bb7b8a609
DIST bluetuith-0.1.8-docs.tar.gz 2382735 BLAKE2B a1cf408cda2b115efdac1a1ab650d2564df5ac4b1f9e037a1c43bbe898b2e6b452b06c4dc634d3c1b124bd5c8e543d6a128a8e35eae89d7f87fb5cac929128f2 SHA512 a8b25e68936dbab717232d159669933d8055182193c4427d1a28fb0ed31a22cd1a80df8ea04824d2d9c95359f859cbd4c5bc8fac65ecac21c7ee9b5e6972d51e
DIST bluetuith-0.1.8.tar.gz 1484790 BLAKE2B 9061502606aba7a23aa0ccfe812864f283c380d0d47dee38f54bcd0f360ce5b4aade5483bd884eb062d03de8f4d8249c7c362066adfcd495bd371f684ae06f14 SHA512 0905af9fc9abdad38150961b4de09d5c78ac0577ba5acc20e7ab5f0578d1c837ec5dc4ede099d36132f626e0fab2a6420a275f883e2be7eb2ac61ebea56d2a13

View File

@@ -0,0 +1,65 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
HOMEPAGE="https://darkhz.github.io/bluetuith"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
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/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz"
KEYWORDS="~amd64 ~arm64"
fi
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" BSD-2 BSD MIT"
SLOT="0"
IUSE="doc"
RESTRICT="test"
RDEPEND="
net-wireless/bluez
"
src_unpack() {
if [[ ${PV} == 9999* ]]; then
# unpack code
git-r3_src_unpack
# unpack docs
EGIT_BRANCH="documentation"
git-r3_fetch
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-${GIT_DOCUMENTATION_COMMIT}"
git-r3_checkout
go-module_live_vendor
else
go-module_src_unpack
fi
}
src_compile() {
ego build
}
src_test() {
ego test ./...
}
src_install() {
default
dobin "${PN}"
dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/documentation/*.md
use doc && docinto html && dodoc -r ../"${PN}-${GIT_DOCUMENTATION_COMMIT}"/docs/*
}

View File

@@ -8,19 +8,22 @@ inherit go-module
DESCRIPTION="A TUI bluetooth manager for Linux written in Go"
HOMEPAGE="https://darkhz.github.io/bluetuith"
GIT_DOCUMENTATION_COMMIT="9c215bb1a64bdbf0f88060db4de6701215799033"
GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b"
if [[ ${PV} == *9999* ]]; then
if [[ ${PV} == 9999* ]]; then
inherit git-r3
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/darkhz/bluetuith/archive/${GIT_DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="Apache-2.0 BSD-2 BSD MIT"
# main
LICENSE="Apache-2.0"
# deps
LICENSE+=" BSD-2 BSD MIT"
SLOT="0"
IUSE="doc"
@@ -30,7 +33,7 @@ RDEPEND="
"
src_unpack() {
if [[ ${PV} == *9999* ]]; then
if [[ ${PV} == 9999* ]]; then
# unpack code
git-r3_src_unpack