pacman/scripts/libmakepkg/meson.build
Allan McRae b234280083 libmakepkg: automatically add library sonames to provides
When the option "autodeps" is enabled, makepkg will add provides
entries for libraries found in the directories specified in LIB_DIRS
in makepkg.conf.  The entries LIB_DIRS array have the format
"prefix:directory".  For example, the entry "lib:usr/lib" will search
$pkgdir/usr/lib for library sonames and add "lib:libfoo.so.1" to the
provides array.

Signed-off-by: Allan McRae <allan@archlinux.org>
2021-12-29 15:20:05 +10:00

28 lines
1 KiB
Meson

libmakepkg_modules = [
{ 'name' : 'autodep', 'has_subdir' : true },
{ 'name' : 'buildenv', 'has_subdir' : true },
{ 'name' : 'executable', 'has_subdir' : true },
{ 'name' : 'integrity', 'has_subdir' : true },
{ 'name' : 'lint_config', 'has_subdir' : true },
{ 'name' : 'lint_package', 'has_subdir' : true },
{ 'name' : 'lint_pkgbuild', 'has_subdir' : true },
{ 'name' : 'reproducible', 'has_subdir' : true },
{ 'name' : 'source', 'has_subdir' : true },
{ 'name' : 'srcinfo', },
{ 'name' : 'tidy', 'has_subdir' : true },
{ 'name' : 'util', 'has_subdir' : true },
]
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'])
endif
endforeach