mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
dev-vcs/lefthook: add 1.2.6
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
34
dev-vcs/lefthook/lefthook-1.2.6.ebuild
Normal file
34
dev-vcs/lefthook/lefthook-1.2.6.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Fast and powerful Git hooks manager for any type of projects"
|
||||
HOMEPAGE="https://github.com/evilmartians/lefthook"
|
||||
SRC_URI="
|
||||
https://github.com/evilmartians/lefthook/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/ixti/lefthook/releases/download/v${PV}/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0 MIT BSD BSD-2 MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
dev-vcs/git
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.17
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
go build -ldflags "-s -w" -o "${PN}" main.go || die "go build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
dodoc README.md CHANGELOG.md docs/configuration.md docs/usage.md
|
||||
}
|
||||
Reference in New Issue
Block a user