AUR.mkdir $HOME/AUR
aur:
ssh-keygen -f ~/.ssh/aur
nano ~/.ssh/config
Host aur.archlinux.org
IdentityFile ~/.ssh/aur
User aur
cd ~/AUR
git clone ssh://aur@aur.archlinux.org/pkgname.git
cd pkgname/
.gitignore file with * inside. This ignores everything unless you force-add it with git add -f filename.PKGBUILD using namecap:
namecap PKGBUILD
updpkgsums
.SRCINFO:
makepkg --printsrcinfo > .SRCINFO
PKGBUILD and .SRCINFO files:
git add -f PKGBUILD .SRCINFO
git commit -m "Your commit message"
git push
Et voilà