mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
app-misc/upterm: new package, add 0.15.3
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
2
app-misc/upterm/Manifest
Normal file
2
app-misc/upterm/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST upterm-0.15.3-vendor.tar.xz 3522576 BLAKE2B 3858321b5e1c250369604fb72ccbc2af6c1f4cd0208ab2545ac6e43f036e5ab507f196c8cb0d4671c4dfe79d979b48ff39e438ccb92c26cf6a03af4fb0278d26 SHA512 83ffa12548729ef6a325d7b8dc9bcdf3b316242c517aa0effb447527e16de24e135828cde5b8cc302120aca00f456096cb4b4cc92ed37a6120d2b7ca4cfa9791
|
||||
DIST upterm-0.15.3.tar.gz 133923 BLAKE2B 26e18331a78956731867c15ae386c2d8649c7c340d8ff2232182555dc0683362b471c65fb1430d90d3cee7afbd2fa646f3274a51b0fdc0c7cd964f36d64e7557 SHA512 ad8383429f2595c83acd3152331bafd62137affcc7187bfa9ddbce443b16d8b0340102533199048e48ead05da7fbdcc285448f690fb786cba95b369e6e947b30
|
||||
14
app-misc/upterm/metadata.xml
Normal file
14
app-misc/upterm/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>arthurzam@gentoo.org</email>
|
||||
<name>Arthur Zamarin</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="server">Compile server support (uptermd)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">owenthereal/upterm</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
47
app-misc/upterm/upterm-0.15.3.ebuild
Normal file
47
app-misc/upterm/upterm-0.15.3.ebuild
Normal file
@@ -0,0 +1,47 @@
|
||||
# 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"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="server test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.24
|
||||
test? (
|
||||
app-editors/vim
|
||||
app-shells/bash
|
||||
)
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
ego build -mod=vendor -o bin/upterm ./cmd/upterm
|
||||
use server && ego build -mod=vendor -o bin/uptermd ./cmd/uptermd
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -mod=vendor -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
|
||||
}
|
||||
Reference in New Issue
Block a user