Crates.io | makeppkg |
lib.rs | makeppkg |
version | 1.1.1 |
source | src |
created_at | 2018-10-02 13:18:54.844359 |
updated_at | 2018-10-05 11:43:31.170726 |
description | wrapper for Arch Linux's makepkg, patches source before packages are built |
homepage | https://github.com/ibrokemypie/makeppkg |
repository | https://github.com/ibrokemypie/makeppkg |
max_upload_size | |
id | 87600 |
size | 29,514 |
git clone https://github.com/ibrokemypie/makeppkg
cd makeppkg
cargo build --release
Binary will be built at ./target/release/makeppkg
$ makeppkg -l <makeppkg patch dir location> <makepkg arguments>
Patch dir location defaults to $HOME/.config/makeppkg
If no patches are found, makeppkg will simply wrap makepkg.
Makeppkg will search the makeppkg patch dir for a folder named after the package being build (taken from the PKGBUILD, the first name found if it is a multi package script).
If the patch directory is found, it will be searched for files ending in .patch
.
Makeppkg will then apply patches to the PKGBUILD if any are found, getting the destination file name from the patch contents, falling back to the base name of the patch file.
Makeppkg will compute the appropriate checksums for the other patches found then insert to the PKGBUILD at the beginning of the prepare step.
Makeppkg only adds patches to be applied to the PKGBUILD rather than patching files directly so that the original checksums are still used to confirm sources before the patches apply.
// TODO: PRODUCE WORKING EXAMPLE
The usecase for this program is to allow the automated patching of packages that are updated, working as a makepkg wrapper that defaults to no action.
An example would be applying patches to the PKGBUILD and kernel config file provided by the linux-zen package to use modprobed-db and enable MuQSS.
By using makeppkg the changes would be applied every time the package is built automatically.