summaryrefslogtreecommitdiff
path: root/gui-apps/clipman/clipman-1.7.0.ebuild
blob: d4a680f5a83cfe150aae1dfb28a19d6de6b8f0c8 (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 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="A basic clipboard manager for Wayland"
HOMEPAGE="https://github.com/chmouel/clipman/"
SRC_URI="https://github.com/chmouel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"

LICENSE="BSD GPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	>=gui-apps/wl-clipboard-2
"
BDEPEND="
	>=dev-lang/go-1.25.0
"

src_compile() {
	# CGO is not needed and it would inject -fno-stack-protector
	CGO_ENABLED=0 ego build .
}

src_install() {
	dobin ${PN}

	doman docs/${PN}.1
	local DOCS=("README.md")
	einstalldocs
}