summaryrefslogtreecommitdiff
path: root/net-irc/senpai/senpai-0.4.1.ebuild
blob: 7021360f5847a5cbee30fee29678522bb9a4e0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Modern terminal IRC client. NOTICE me :senpai!"
HOMEPAGE="https://sr.ht/~delthas/senpai/"
SRC_URI="https://git.sr.ht/~delthas/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/senpai/releases/download/v${PV}/${P}-deps.tar.xz -> ${P}-deps.renamenextbump.tar.xz"

S="${WORKDIR}/${PN}-v${PV}"

LICENSE="Apache-2.0 BSD BSD-2 ISC MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

BDEPEND="
	app-text/scdoc
"

src_compile() {
	ego build ${GOFLAGS} ./cmd/senpai

	scdoc <doc/senpai.1.scd >doc/senpai.1 || die
	scdoc <doc/senpai.5.scd >doc/senpai.5 || die
}

src_install() {
	dobin senpai

	doman doc/senpai.{1,5}
	einstalldocs
}