Updating AUR Package

For updating an AUR package I use trizen. But this post is about maintaining an AUR package.

Here I will collect the commands required to update the PKGBUILD, when you maintain an AUR package.

Let's take makedepend as an example. First you check-out the Git repository in read-write mode.

git clone ssh://aur@aur.archlinux.org/makedepend.git

Edit the PKGBUILD file. Then run

updpkgsums

to update the checksums in PKGBUILD. This will automatically download the required software from the internet. Then update .SRCINFO file like this:

makepkg --printsrcinfo > .SRCINFO

Build the package with makepkg

time makepkg

Check the package by installing it with pacman:

pacman -U /var/cache/aur/makedepend-1.0.7-1-x86_64.pkg.tar.zst

Run the corresponding the commands, to see whether everything is as expected. Then check-in to Git:

git status
git diff
git commit -m"Updated to version 1.7.0"
git push