portage/dev-util/xcaddy/xcaddy-9999.ebuild
Sam Therapy 0b08c355fe
dev-util/xcaddy: add proper license list
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 16:45:43 +01:00

33 lines
601 B
Bash

# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 go-module
DESCRIPTION="Deliver Go binaries as fast and easily as possible"
HOMEPAGE="https://github.com/caddyserver/xcaddy"
EGIT_REPO_URI="https://github.com/caddyserver/xcaddy.git"
RESTRICT="network-sandbox strip"
LICENSE="MIT Apache-2.0"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego build -ldflags "-s -w" ./cmd/xcaddy
}
src_install() {
dobin ./${PN}
dodoc README.md
}