ports/contrib (3.7): docker-buildx: initial import, version 0.10.3
commit bb31533a8ec9bcd571a1226ac266be4fd18872db Author: Matt Housh <jaeger@crux.ninja> Date: Mon Feb 27 18:09:27 2023 -0600 docker-buildx: initial import, version 0.10.3 diff --git a/docker-buildx/.footprint b/docker-buildx/.footprint new file mode 100644 index 000000000..4031172ed --- /dev/null +++ b/docker-buildx/.footprint @@ -0,0 +1,5 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/docker/ +drwxr-xr-x root/root usr/lib/docker/cli-plugins/ +-rwxr-xr-x root/root usr/lib/docker/cli-plugins/docker-buildx diff --git a/docker-buildx/.nostrip b/docker-buildx/.nostrip new file mode 100644 index 000000000..8d98f9deb --- /dev/null +++ b/docker-buildx/.nostrip @@ -0,0 +1 @@ +.* diff --git a/docker-buildx/.signature b/docker-buildx/.signature new file mode 100644 index 000000000..f4fe19518 --- /dev/null +++ b/docker-buildx/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3ySDXBLeJgm3MFSB8Ntg0W+rIh3sDHAVo9M/F6xRBhNKgU692bJtbIXEM+a2syJv8aeZziwOp5kAfPVj3OcvrgE= +SHA256 (Pkgfile) = 4c2dfe1bc443dba303e219029f9ca8faa9e6e1022a366131137969b1b529c5dd +SHA256 (.footprint) = 7d7ebf2afc3613942c07a965f304cfe59dcf5df3db787bb89f501718d69dad48 +SHA256 (docker-buildx-0.10.3.tar.gz) = e21ce4b222cfcc5fe981a1ee51fca1f7c7d59de0f1911ae3f64f6d9a969695a3 diff --git a/docker-buildx/Pkgfile b/docker-buildx/Pkgfile new file mode 100644 index 000000000..b24dcfb1a --- /dev/null +++ b/docker-buildx/Pkgfile @@ -0,0 +1,26 @@ +# Description: Docker CLI plugin for extended build capabilities with BuildKit +# URL: https://github.com/docker/buildx/ +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: + +name=docker-buildx +version=0.10.3 +release=1 +source=(https://github.com/docker/buildx/archive/v${version}/$name-$version.tar.gz) + +build() { + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + export GO111MODULE=on + + cd buildx-$version + go build -mod=vendor -o docker-buildx -ldflags "-linkmode=external \ + -X github.com/docker/buildx/version.Version=$version \ + -X github.com/docker/buildx/version.Revision=79e156beb11f697f06ac67fa1fb958e4762c0fab \ + -X github.com/docker/buildx/version.Package=github.com/docker/buildx" \ + ./cmd/buildx + install -Dm755 $name $PKG/usr/lib/docker/cli-plugins/$name +}
participants (1)
-
crux@crux.nu