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:
makepkg
If 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 -s
Adding 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 -i
To 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 -c
All together to build:
makepkg -src
and to install:
makepkg -i
Install pacman-contrib
and run the following command in the same directory as the PKGBUILD file to generate new checksums:
updpkgsums