Open ~/.ssh/config:
nvim ~/.ssh/config
Add the following:
Host aur.archlinux.org
IdentityFile ~/.ssh/aur
User aur
Generate SSH keys:
cd ~/.ssh/
ssh-keygen -t ed25519 -f ~/.ssh/aur
Go to your AUR profile, "My Account" page and add the public key with the appropriate menu.
Clone package:
git clone ssh://aur@aur.archlinux.org/package_name.git
Clone empty AUR repository, but with your package's desired name:
git -c init.defaultbranch=master clone ssh://aur@aur.archlinux.org/package-name.git ./package-name
Add an AUR remote:
cd ./package-name
git remote add label ssh://aur@aur.archlinux.org/package-name.git
Fetch the remote for AUR initialization:
git fetch package-name
Create PKGBUILD:
sudo cp -v /usr/share/pacman/PKGBUILD.proto ./PKGBUILD
Generate .SRCINFO:
makepkg --printsrcinfo > .SRCINFO
Push first commit:
git add .
git commit -m "Initial commit."
git push origin master
Create package:
makepkg -si
(optional: clean cache with makepkg --clean
)
Make the required modifications to the required files.
Update checksums:
updpkgsums PKGBUILD
Add, commit and push the changes to the AUR (example: godot-voxel-bin
):
git add .
git commit -m "Updated for Godot x.x.x and Voxel Tools x.x.x"
git push