A tool for Arch Linux package manager pacman to modify PKGBUILD automatically
Shell
53
48 commits
updated Apr 15, 2026
A tool for Arch Linux package manager pacman to modify PKGBUILD automatically.
Without any parameters, it will read ./PKGBUILD and show any modifications that would be done.
Create config files with the same name as the package you want to modify, and place in either:
/etc/customizepkg.d/ or ~/.customizepkg/. You can export the environment
variable $CUSTOMIZEPKG_CONFIG to change the directory customizepkg will look
for the config files in.
customizepkg will also use the xdg-standardized directories to look for config files.
This means that you can also put your config files in ~/.config/customizepkg or /etc/xdg/customizepkg or configure
those directories with $XDG_CONFIG_HOME or $XDG_CONFIG_DIRS
The pacman wrapper "Yaourt" integrates with customizepkg by default
The AUR helper "Paru" can be configured in /etc/paru.conf by adding:
[bin]
PreBuildCommand = customizepkg -m
ACTION#CONTEXT#PATTERN#VALUE
#You can add extra files to a PKGBUILD by placing them in /etc/customizepkg.d/$PACKAGENAME.files/
They will be added automatically, including checksums
If the configuration file has the executable flag set, it will be executed instead of parsed. Two parameters are passed to the script:
Patch files can be applied to the source code using the following syntax:
patch#1#file.patch
patch -p1)You can also patch the PKGBUILD with the following syntax:
patch#pkgbuild#file.patch
Shell
100.0%
A tool for Arch Linux package manager pacman to modify PKGBUILD automatically
Shell
53
48 commits
updated Apr 15, 2026
A tool for Arch Linux package manager pacman to modify PKGBUILD automatically.
Without any parameters, it will read ./PKGBUILD and show any modifications that would be done.
Create config files with the same name as the package you want to modify, and place in either:
/etc/customizepkg.d/ or ~/.customizepkg/. You can export the environment
variable $CUSTOMIZEPKG_CONFIG to change the directory customizepkg will look
for the config files in.
customizepkg will also use the xdg-standardized directories to look for config files.
This means that you can also put your config files in ~/.config/customizepkg or /etc/xdg/customizepkg or configure
those directories with $XDG_CONFIG_HOME or $XDG_CONFIG_DIRS
The pacman wrapper "Yaourt" integrates with customizepkg by default
The AUR helper "Paru" can be configured in /etc/paru.conf by adding:
[bin]
PreBuildCommand = customizepkg -m
ACTION#CONTEXT#PATTERN#VALUE
#You can add extra files to a PKGBUILD by placing them in /etc/customizepkg.d/$PACKAGENAME.files/
They will be added automatically, including checksums
If the configuration file has the executable flag set, it will be executed instead of parsed. Two parameters are passed to the script:
Patch files can be applied to the source code using the following syntax:
patch#1#file.patch
patch -p1)You can also patch the PKGBUILD with the following syntax:
patch#pkgbuild#file.patch
Shell
100.0%