# podman - Daemonless 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=podman
version=5.7.0
release=1
desc="Daemonless container engine"
url="https://podman.io/"
license="Apache-2.0"
depend="glibc conmon crun libseccomp"
makedepend="go"
source="https://github.com/containers/podman/archive/refs/tags/v5.7.0.tar.gz"
sha256="SKIP"

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

package() {
	cd "podman-5.7.0"
	install -Dm755 "podman" "$pkgdir/usr/bin/podman"
}
