To upload PKGBUILDs to the MPR, you must first already have an SSH key pair on your local system.
After such, add the public key to your account under the My Account section, and then properly configure SSH in your
~/.ssh/config file like so:
Host mpr.makedeb.org IdentityFile ~/.ssh/name_of_ssh_key User mpr
When uploading the SSH key to your profile on the MPR, make sure you only upload the file with the
On the contrary,
~/.ssh/name_of_ssh_key in the above example should point to the file without the
You should now verify your connection to the MPR, which consists of first verifying the SSH fingerprints for the MPR (which can be found on the MPR instance information page while logged out), and then verifying that you actually logged in fine.
To test everything, you can run the following:
On a successful connection, you should get a message similar to such:
PTY allocation request failed on channel 0 Interactive shell is disabled. Try `ssh firstname.lastname@example.org help` for a list of commands. Connection to mpr.makedeb.org closed.
Next, clone the Git repository for the package you’d like to add and copy the PKGBUILD to that directory (replace
pkgname with the name of your package):
git clone "ssh://email@example.com/pkgname.git"
Lastly, generate the SRCINFO file, then commit and push the changed files:
makedeb --print-srcinfo | tee .SRCINFO git add PKGBUILD .SRCINFO git commit -m "A very creative commit message" git push