There's a merged pull request on the void-packages repository [RFC] patch_args: allow use of --directory parameter https://github.com/void-linux/void-packages/pull/36409 Description: `patch(1)` has a `-d/--directory` parameter which allows us to specify a directory where the patch will be applied. This is especially useful when we have multiple distfiles and want to patch in $build_wrksrc because that's where the patch is usually applied. So far, these patches had to be updated if $build_wrksrc changes, which is suboptimal. Problem is, that the `-i` parameter is also relative to the the `-d` parameter and thus fails to find the patch, when `-d` is set. This PR tries to solve that by using standard input instead of `-i`. Included are examples with wine and chatterino2 making use of that change. #### Testing the changes - I tested the changes in this PR: **briefly**