This is the code I use to publish the BeyondCompare package to Chocolatey.
It's actually really easy.
Build.ps1
cinst beyondcompare -Source "full-directory-path"
And you're done!
When a new release of BeyondCompare is out in the wild, updating this package is easy:
.\Update-Version.ps1
After I merge the pull request, I'll publish a new release to Chocolatey so they can review it.