name=runc version=1.3.1 release=1 source="https://github.com/opencontainers/${name}/archive/v${version}/${name}-v${version}.tar.gz" build() { export GOPATH="$PWD/go" export BUILDTAGS='seccomp apparmor' export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-trimpath -mod=readonly -modcacherw" make runc man install -Dm755 runc "$PKG/usr/bin/runc" install -d "$PKG/usr/share/man/man8" install -m644 man/man8/*.8 "$PKG/usr/share/man/man8" }