blob: 9420ad546c6064fba64a2266838059dade1d029e (
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-2026 Liguros 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"
GIT_COMMIT="4cc7213b9bc8b868b2990c372f6fa057fa88b91c"
SRC_URI="
https://github.com/gordonklaus/${PN}/archive/${GIT_COMMIT}.zip -> ${P}.zip
https://codeberg.org/bluebottle/liguros-distfiles/raw/branch/main/${P}-deps.tar.xz
"
LICENSE="MIT License"
SLOT="0"
KEYWORDS="amd64 x86 arm"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
src_compile() {
cd ${S}
mkdir -pv bin || die
go build -o "${S}/bin/${PN}" || die
}
src_install() {
dobin bin/*
dodoc LICENSE README.md
}
|