# docker - Container engine
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=docker
version=28.5.2
release=1
desc="Container engine"
url="https://docker.com/"
license="Apache-2.0"
depend="glibc containerd runc libseccomp iptables-nft"
makedepend="go"
source="https://github.com/moby/moby/archive/refs/tags/v28.5.2.tar.gz"
sha256="SKIP"

build() {
	cd "docker-28.5.2"
	export CGO_CPPFLAGS="$CPPFLAGS" CGO_CFLAGS="$CFLAGS" CGO_LDFLAGS="$LDFLAGS"
	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
	go build -o "docker" .
}

package() {
	cd "docker-28.5.2"
	install -Dm755 "docker" "$pkgdir/usr/bin/docker"
}
