app-misc/upterm: add 0.20.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-12-05 12:46:45 +02:00
parent 7a7e91fa7d
commit 617a01bccb
2 changed files with 52 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST upterm-0.18.0-vendor.tar.xz 3779868 BLAKE2B 846155c764437dbba34efbcf30424ee
DIST upterm-0.18.0.tar.gz 153200 BLAKE2B 08d281a35590dfa1e1df546873ac3903cd3848c83d80fae4d50161a6088299590e3624e989a7418aa5997a04e55e85115d9d5335f0f7d01d73b0c73013af5b15 SHA512 8cf4362bca36b1ce1aff9f48fc4a867a678bcf77de440413716207439cde8f3f91b5d6b2b4a265cdc253663ef3019e1de0876ef3aa4a77d28c74a6bcb359e471
DIST upterm-0.19.0-vendor.tar.xz 3928796 BLAKE2B 39fa1fa12984e85a299cac080dddbb08568c2ded2bf4f4cbaf5d3424aee0d155f672ad8ef7546c922a08d8bfea377683e1462a050fdc54ace46629f1b9944f46 SHA512 d74712ad6459b2bc74ebdfa065c7734f04624a4145a96f93ba3b51a4dd730a3e0563549d6dbbc35356c6c1c3d32810e09f88851bec568eb47565d6f34f6100a5
DIST upterm-0.19.0.tar.gz 160052 BLAKE2B 502b1abcca498f5fdf33ac7bb3b889bce0c1daa1865cab94ebaa7a6a44ee98cab0f7c113a639978abc4080f366e19b7de0732f61d879825b95b48eb9afad90f3 SHA512 3855c672e620586b5b8f0d34cd817ddb5521101cdabf9b1115e65991a47e968c5467d46c2a0a433ff90c849e225ab0901e2766762cdf4fbf1a7cf40c483e768f
DIST upterm-0.20.0-vendor.tar.xz 3932452 BLAKE2B 813b6cdc050efe73eeb3bdc515faaeeee26f125d9a65064128202a51df542839e26c4d459dad8e29c37066d234fdcbfb4f8a984d8f2e1050255e04a1339b19e0 SHA512 31eb03f34b35f6df0a0c69010472c6700acd424de93e2a8743da2d64010137e3ecf34c01f5ca047c9a21d255b4efbf7fc6eaa0200c2335ebda660f73740bd82f
DIST upterm-0.20.0.tar.gz 161410 BLAKE2B d80940f84ddc2e82f160c57746a18d53d0360eb80e855e19057e5fb3a6a241ce00e85048f74aa26c5b89a8a24e8f228e9232325f48302ab15d653925d251e1d3 SHA512 7430f9f8d3b6dd5997593575497a1b65327df5b3b0624cd636e9e425b76e8943b926cb189a3050bc18e6bf15764328d86aed20651af117f91295480a6fd578a5

View File

@@ -0,0 +1,50 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion systemd
DESCRIPTION="Instant Terminal Sharing"
HOMEPAGE="https://upterm.dev/"
SRC_URI="https://github.com/owenthereal/upterm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/upterm/releases/download/v${PV}/${P}-vendor.tar.xz"
LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 CC0-1.0 MIT MPL-2.0 Unlicense"
SLOT="0"
KEYWORDS="~amd64"
IUSE="server test"
RESTRICT="!test? ( test )"
BDEPEND="
>=dev-lang/go-1.25.4
test? (
app-editors/vim
app-shells/bash
)
"
src_compile() {
local BINS=( ./cmd/upterm )
use server && BINS+=( ./cmd/uptermd )
ego build -o bin/ "${BINS[@]}"
}
src_test() {
ego test -vet=off -timeout=120s ./{cmd,server,io,host,memlistener,routing,internal,ftests}/...
}
src_install() {
dobin bin/upterm
doman etc/man/man1/*
newbashcomp etc/completion/upterm.bash_completion.sh upterm
newzshcomp etc/completion/upterm.zsh_completion _upterm
if use server; then
dobin bin/uptermd
systemd_dounit systemd/uptermd.service
fi
}