以 libfprint-git 包为例。
- 下载包信息 - yaourt -G libfprint-git cd libfprint-git
- 修改包信息 - 可编辑 - PKGBUILD文件,如- source指定- branch- source=("git+https://gitlab.freedesktop.org/libfprint/libfprint.git") - 改为 - source=("git+https://gitlab.freedesktop.org/libfprint/libfprint.git#branch=wip/hadess/too-many-minutiae") 
- 下载包源代码
makepkg -sr --nobuild
- 修改源代码 - 修改 - src/libfprint下的项目源代码文件
- 编译安装修改后的包 - makepkg -ei - 如果之前有编译出包,需要将它删除,否则不会重新编译而是安装之前的包 - rm libfprint-git-*-x86_64.pkg.tar.xz 
- 参考