diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-05 09:05:42 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-05 09:05:42 +0000 |
commit | c3870d5920e6ee600e9360c3a5b004b7ad0c5abf (patch) | |
tree | 783e53d0526f67659a53911dd1dd9ca88eaad19a /app-containers/docker-buildx/docker-buildx-0.9.1.ebuild | |
parent | 94393d04ccce851b0084c650c99a2eca52f9d3bb (diff) |
gentoo auto-resync : 05:12:2022 - 09:05:41
Diffstat (limited to 'app-containers/docker-buildx/docker-buildx-0.9.1.ebuild')
-rw-r--r-- | app-containers/docker-buildx/docker-buildx-0.9.1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild new file mode 100644 index 000000000000..298498909a93 --- /dev/null +++ b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +MY_PN="buildx" +DESCRIPTION="Docker CLI plugin for extended build capabilities with BuildKit" +HOMEPAGE="https://github.com/docker/buildx" +SRC_URI="https://github.com/docker/buildx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND="app-containers/docker" +RDEPEND="${DEPEND}" + +src_compile() { + local _buildx_r='github.com/docker/buildx' + ego build -mod=vendor -o docker-buildx \ + -ldflags "-linkmode=external \ + -X $_buildx_r/version.Version=${PV} \ + -X $_buildx_r/version.Revision=$(date -u +%FT%T%z) \ + -X $_buildx_r/version.Package=$_buildx_r" \ + ./cmd/buildx +} + +src_test() { + ego test ./... +} + +src_install() { + exeinto /usr/libexec/docker/cli-plugins + doexe docker-buildx + + dodoc README.md +} |