Submit a Package to the Arch User Repository
Table of Contents
I assume you are somewhat familiar with makepkg
, git
and the process of creating packages under Arch Linux.
Once your PKGBUILD
is created, works as desired and the package builds, is installable and works, this is how you continue:
Preparation, Initial Upload ∆
-
create the
.SRCINFO
file:makepkg --printsrcinfo > .SRCINFO
-
add a
.gitignore
file with the following content:* !.gitignore !PKGBUILD !.SRCINFO !*.patch !*.diff !*.install !*.service
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 directoryinsert_name_here
does not exist beforehand! - copy the files mentioned in the
.gitignore
above into the just createdinsert_name_here
directory - make sure you are happy with the output of
git config user.name
andgit 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 ∆
After you made changes:
- in
PKGBUILD
increase thepkgrel
variable by one - recreate
.SRCINFO
- now comes the usual
git add .; git commit -m "meaningful message"; git push