summaryrefslogtreecommitdiff
path: root/app-shells/powerline-go/powerline-go-1.25.ebuild
blob: c247d75fb796be7567e20a19061f159a9054572f (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
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="A powerline like prompt for Bash, Zsh, Fish written in Go lang."
HOMEPAGE="https://github.com/justjanne/powerline-go"
SRC_URI="https://github.com/justjanne/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/Tapchicoma/ebuild-deps/raw/refs/heads/main/go-deps/${PN}-${PV}-deps.tar.xz"

LICENSE="GPL-3 MIT Apache-2.0 BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"

DOCS=(README.md)

src_compile() {
	go build -o release/powerline-go . || die
}

src_install() {
	dobin release/powerline-go
	einstalldocs
}

pkg_postinst() {
	elog 'Check installed documentation to how-to add this to the shell prompt'
}