pacman/scripts/libmakepkg/lint_config/meson.build
Allan McRae 69aa94c817 libmakepkg: add linting of BUILDENV and OPTIONS from makepkg.conf
Currently the options array from a PKGBUILD is linted, but the global
BUILDENV and OPTIONS are not.

Fixes #233.

Signed-off-by: Allan McRae <allan@archlinux.org>
2025-08-02 15:32:11 +10:00

23 lines
518 B
Meson

libmakepkg_module = 'lint_config'
sources = [
'buildenv.sh.in',
'ext.sh.in',
'nproc.sh.in',
'packager.sh.in',
'paths.sh.in',
'source_date_epoch.sh.in',
'variable.sh.in',
]
foreach src : sources
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
custom_target(
libmakepkg_module + '_' + src.underscorify(),
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
input : src,
output : '@BASENAME@',
install : true,
install_dir : output_dir)
endforeach