forked from ports/contrib
docker-buildx: initial import, version 0.10.3
This commit is contained in:
parent
4407a728e4
commit
bb31533a8e
5
docker-buildx/.footprint
Normal file
5
docker-buildx/.footprint
Normal file
@ -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
|
1
docker-buildx/.nostrip
Normal file
1
docker-buildx/.nostrip
Normal file
@ -0,0 +1 @@
|
|||||||
|
.*
|
5
docker-buildx/.signature
Normal file
5
docker-buildx/.signature
Normal file
@ -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
|
26
docker-buildx/Pkgfile
Normal file
26
docker-buildx/Pkgfile
Normal file
@ -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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user