PKGBUILD repository for AUR and personal packages
Change to the directory where the PKGBUILD is saved and run the following command to build the package:
makepkgIf required dependencies ar missing, makepkg will issue a warning before failing.
To build the package and install needed dependencies, add the flag -s/--syncdeps:
makepkg -sAdding the -r/--rmdeps flag causes makepkg to remove the make dependencies later.
Once all dependencies are satisfied and the package builds successfully, a package file will be created in the working directory.
To install, use -i/--install:
makepkg -iTo clean up leftover files and folders, such as files extracted to the $srcdir, add the option -c/--clean.
This is useful for multiple builds of the same package or updating the package version, while using the same build folder.
It prevents obsolete and remnant files from carrying over to the new builds:
makepkg -cAll together to build:
makepkg -srcand to install:
makepkg -iInstall pacman-contrib and run the following command in the same directory as the PKGBUILD file to generate new checksums:
updpkgsums