check the aur PKGBUILD.
It has "prepare()" function. I describe how to use diff/patch instead of sed.
remove the line with "sed"
follow this guide or any other guide related to making a diff file and how to patch it.
write the patch command in "prepare()'
patch < meson_option-elogind_patch.patch
the patch file should be something like this
--- meson_options.txt 2023-07-12 01:18:36.957791925 +0000
+++ meson_options.txt 2023-07-12 01:21:01.128908620 +0000
@@ -30,13 +30,13 @@
option('systemd',
type : 'boolean',
- value : true,
+ value : false,
description : 'Build systemd unit files')
option('logind-provider',
type : 'combo',
choices: [ 'elogind', 'systemd'],
- value : 'systemd',
+ value : 'elogind',
description : 'Which logind provider to use')
option('coverity',