From 87aafc1738babb6237df5de370ed56f60186a469 Mon Sep 17 00:00:00 2001 From: Alexander Kapshuna Date: Sun, 23 Jun 2019 12:17:04 +0300 Subject: [PATCH] build: install scripts into bindir provided by meson This will use --bindir value to install additional scripts into the same location as compton binary (current behavior: hardcoded $prefix/bin). Useful for custom installations and/or cross-compiling. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f8d5c84..0abe7a2 100644 --- a/meson.build +++ b/meson.build @@ -66,7 +66,8 @@ test_h_dep = subproject('test.h').get_variable('test_h_dep') subdir('src') subdir('man') -install_subdir('bin', install_dir: '') +install_data(['bin/compton-convgen.py', 'bin/compton-trans'], + install_dir: get_option('bindir')) install_data('compton.desktop', install_dir: 'share/applications') install_data('media/icons/48x48/compton.png', install_dir: 'share/icons/hicolor/48x48/apps')