ava1ar / customizepkg

A tool for Arch Linux package manager pacman to modify PKGBUILD automatically
GNU General Public License v3.0
49 stars 14 forks source link

change the patch commnad to patch the source to descend in the package-version folder #35

Open kidpixo opened 2 years ago

kidpixo commented 2 years ago

Patch the source

Patch files can be applied to the source code using the following syntax:

patch#1#file.patch

In the original repo this generate a line in PKGBUILD in prepare function:

patch -Np1 -i file.patch

this is modified to generate:

patch -Np1 --directory=$pkgname-$pkgver < file.patch

this way makepkg descends in the src/ directory and apply the patch file.patch in the $pkgname-$pkgver directory below.