mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 08:18:49 -04:00
I manually went through some entries for `pkgcheck scan -c VariableOrderCheck`. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Julien Roy <julien@jroy.ca>
33 lines
717 B
Bash
33 lines
717 B
Bash
# Copyright 2020-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
DESCRIPTION="distributed, offline-first bug tracker"
|
|
HOMEPAGE="https://github.com/MichaelMure/git-bug"
|
|
SRC_URI="https://github.com/MichaelMure/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://gentoo.kropotkin.rocks/go-pkgs/${P}-vendor.tar.xz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
|
|
RESTRICT="strip"
|
|
|
|
src_compile() {
|
|
ego generate
|
|
ego build \
|
|
-ldflags "-s -w -X github.com/MichealMure/git-bug/commands.GitLastTag=${PV} -X github.com/MichealMure/git-bug/commands.GitExactTag=${PV}" \
|
|
-o ${PN}
|
|
}
|
|
|
|
src_install() {
|
|
dobin ${PN}
|
|
}
|
|
|
|
src_test() {
|
|
CI=true ego test
|
|
}
|