Skip to content

Instantly share code, notes, and snippets.

@EdJoPaTo
Last active May 11, 2023 04:08
Show Gist options
  • Save EdJoPaTo/32c13a23bc105011209cd35be6ef6869 to your computer and use it in GitHub Desktop.
Save EdJoPaTo/32c13a23bc105011209cd35be6ef6869 to your computer and use it in GitHub Desktop.
useful commands while building an AUR package

Start a new one

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

Prototype files are in /usr/share/pacman

Tools

Generate md5sums

updpkgsums

Generate .SRCINFO

makepkg --printsrcinfo > .SRCINFO

Check package sanity

namcap PKGBUILD

Install the package in chroot

Install devtools first. See https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

extra-x86_64-build

test run the package build in order to see failing steps

updpkgsums && makepkg --printsrcinfo > .SRCINFO && namcap PKGBUILD && makepkg -f

install the package

makepkg -i

Useful links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment