For the purposes of this example, we assume the local repository custom is located in /home/custompkgs.
Append a section for the local repository to /etc/pacman.conf
[custom]
SigLevel = Optional TrustAll
Server = file:///home/custompkgs
Create the repository root and database: