summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-12-10 01:15:19 -0500
committerAllan McRae <allan@archlinux.org>2018-12-12 10:13:08 +1000
commit77b8ca70322a121a2efb5318042e664246d3ec0e (patch)
treea7b38f389c19e3ce0bfc7ac6da4b248d2dbeeed3
parentd73fed4e134a1912df7bbc6a50c2287023ea1c4a (diff)
downloadpacman-77b8ca70322a121a2efb5318042e664246d3ec0e.tar.xz
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>
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 394bd1f5..138a1934 100644
--- a/meson.build
+++ b/meson.build
@@ -436,6 +436,15 @@ install_data(
'proto/proto.install',
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.set('PMTEST_SCRIPTLIB_DIR', join_paths(meson.source_root(), 'scripts/library/'))
TEST_ENV.set('PMTEST_LIBMAKEPKG_DIR', join_paths(meson.build_root(), 'scripts/libmakepkg/'))