
Refactor many of the different arrays of pkgbuild variables into scripts/libmakepkg/util/schema.sh.in. Signed-off-by: morganamilo <morganamilo@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
25 lines
540 B
Meson
25 lines
540 B
Meson
libmakepkg_module = 'util'
|
|
|
|
sources = [
|
|
'compress.sh.in',
|
|
'error.sh.in',
|
|
'message.sh.in',
|
|
'option.sh.in',
|
|
'parseopts.sh.in',
|
|
'pkgbuild.sh.in',
|
|
'schema.sh.in',
|
|
'source.sh.in',
|
|
'util.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
|