Submit a Package to the Arch User Repository

My first AUR package!

I assume you are somewhat familiar with makepkg, git and the process of creating packages under Arch Linux.
Once your PKGBUILDis created, works as desired and the package builds, is installable and works, this is how you continue:

Preparation, Initial Upload-up-

  • create the .SRCINFO file: makepkg --printsrcinfo > .SRCINFO
  • add a .gitignore file with the following content:

You also need an AUR account, and you need an SSH key pair for authentication. Once this is set up, the easiest way to continue is:

  • issue git clone ssh://aur@aur.archlinux.org/insert_name_here.git - make sure the directory insert_name_here does not exist beforehand!
  • copy the files mentioned in the .gitignore above into the just created insert_name_here directory
  • make sure you are happy with the output of git config user.name and git config user.email - if not, change it now!
  • now comes the usual git add .; git commit -m "meaningful message"; git push origin master

If this worked, your new AUR package should now show up under https://aur.archlinux.org/packages/insert_name_here/!

Maintenance, Subsequent Uploads-up-

After you made changes:

  • in PKGBUILD increase the pkgrel variable by one
  • recreate .SRCINFO
  • now comes the usual git add .; git commit -m "meaningful message"; git push