2018-07-07 10:29:48 -04:00
|
|
|
libmakepkg_modules = [
|
2018-11-27 18:23:02 +09:00
|
|
|
{ 'name' : 'buildenv', 'has_subdir' : true },
|
2018-11-27 18:23:00 +09:00
|
|
|
{ 'name' : 'executable', 'has_subdir' : true },
|
2018-07-07 10:29:48 -04:00
|
|
|
{ 'name' : 'integrity', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'lint_config', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'lint_package', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'lint_pkgbuild', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'source', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'srcinfo', },
|
|
|
|
{ 'name' : 'tidy', 'has_subdir' : true },
|
|
|
|
{ 'name' : 'util', 'has_subdir' : true },
|
|
|
|
]
|
|
|
|
|
|
|
|
mkdir_p = 'mkdir -p $DESTDIR/@0@'
|
|
|
|
|
|
|
|
foreach module : libmakepkg_modules
|
|
|
|
custom_target(
|
|
|
|
'libmakepkg_@0@'.format(module['name']),
|
|
|
|
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
|
|
|
|
input : '@0@.sh.in'.format(module['name']),
|
|
|
|
output : '@BASENAME@',
|
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'makepkg'))
|
|
|
|
|
|
|
|
if module.get('has_subdir', false)
|
|
|
|
subdir(module['name'])
|
|
|
|
path = join_paths(get_option('prefix'),
|
|
|
|
get_option('datadir'),
|
|
|
|
'makepkg',
|
|
|
|
module['name'])
|
|
|
|
meson.add_install_script('sh', '-c', mkdir_p.format(path))
|
|
|
|
endif
|
|
|
|
endforeach
|