meson: install the directories needed for successful pacman operation
This was neglected in the initial meson port. We need these directories to exist in order to bootstrap a new installation. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d73fed4e13
commit
77b8ca7032
1 changed files with 9 additions and 0 deletions
|
@ -436,6 +436,15 @@ install_data(
|
||||||
'proto/proto.install',
|
'proto/proto.install',
|
||||||
install_dir : join_paths(DATAROOTDIR, 'pacman'))
|
install_dir : join_paths(DATAROOTDIR, 'pacman'))
|
||||||
|
|
||||||
|
foreach path : [
|
||||||
|
join_paths(LOCALSTATEDIR, 'lib/pacman/'),
|
||||||
|
join_paths(LOCALSTATEDIR, 'cache/pacman/pkg/'),
|
||||||
|
join_paths(DATAROOTDIR, 'makepkg-template/'),
|
||||||
|
join_paths(DATAROOTDIR, 'libalpm/hooks/'),
|
||||||
|
]
|
||||||
|
meson.add_install_script('sh', '-c', 'mkdir -p "$DESTDIR/@0@"'.format(path))
|
||||||
|
endforeach
|
||||||
|
|
||||||
TEST_ENV = environment()
|
TEST_ENV = environment()
|
||||||
TEST_ENV.set('PMTEST_SCRIPTLIB_DIR', join_paths(meson.source_root(), 'scripts/library/'))
|
TEST_ENV.set('PMTEST_SCRIPTLIB_DIR', join_paths(meson.source_root(), 'scripts/library/'))
|
||||||
TEST_ENV.set('PMTEST_LIBMAKEPKG_DIR', join_paths(meson.build_root(), 'scripts/libmakepkg/'))
|
TEST_ENV.set('PMTEST_LIBMAKEPKG_DIR', join_paths(meson.build_root(), 'scripts/libmakepkg/'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue