abinfo "Building runc..."
export GOPATH="$SRCDIR"
export BUILDTAGS='seccomp apparmor'
export GOFLAGS="-trimpath -mod=readonly -modcacherw"
make runc man

abinfo "Installing runc..."
mkdir -pv "$PKGDIR/usr/share/man/man8"
install -Dvm644 "$SRCDIR"/man/man8/*.8 "$PKGDIR/usr/share/man/man8"
install -Dvm755 "$SRCDIR"/runc "$PKGDIR/usr/bin/runc"
install -Dvm644 "$SRCDIR"/contrib/completions/bash/runc \
"$PKGDIR/usr/share/bash-completion/completions/runc"
