You are not logged in.

#1 2024-03-08 04:35:00

ksnw
Member
Registered: 2023-02-26
Posts: 8

Best way to use an existing AUR package with a different build flag?

for example, the mongo-cxx-driver does almost what I need, but I would like to remove the following flag from the build function.

-DBSONCXX_POLY_USE_BOOST=1

What I do now is clone the AUR git, edit the PKGBUILD file, then `makepkg -si`. Problem is when updates are out, I need to manually update the pkgver, the shasum, and run the makepkg again.

I wonder if there is a better way to handle this, with helpers like paru, but without me generating a new PKGBUILD file. Thanks!

Offline

#2 2024-03-08 10:11:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: Best way to use an existing AUR package with a different build flag?

if nothing else changes you should be able to just pull the thing again and merge the diffs using standard git.

More generally speaking there's https://aur.archlinux.org/packages/customizepkg-git which you can hook into with parus PreBuildCommand: https://github.com/Morganamilo/paru/pull/539

Offline

Board footer

Powered by FluxBB