summaryrefslogtreecommitdiff
path: root/dev-util/ineffassign/ineffassign-0.1.0.ebuild
blob: a5fd297d44874d26a4dcc0807baf1e6569a7a3b4 (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
# Copyright 2021-2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
KEYWORDS="~amd64"

inherit go-module bash-completion-r1

DESCRIPTION="Detects ineffectual assignments in Go code."
HOMEPAGE="https://github.com/gordonklaus/ineffassign"
SRC_URI="
	https://github.com/gordonklaus/ineffassign/archive/refs/tags/v${PV}.tar.gz
	https://codeberg.org/bluebottle/baldeagleos-distfiles/raw/branch/main/${P}-deps.tar.xz
"

LICENSE="MIT License"
SLOT="0"
KEYWORDS="amd64 x86 arm"

src_compile() {
	cd ${S}
	mkdir -pv bin || die
	go build -o "${S}/bin/${PN}" || die
}

src_install() {
	dobin bin/*
	dodoc LICENSE README.md
}