diff --git a/meson.build b/meson.build
index 4d4d2bf..b92beb4 100644
--- a/meson.build
+++ b/meson.build
@@ -207,7 +207,7 @@ if get_option('default_library') != 'static'
     install_dir : get_option('bindir'))
 
   install_data('src/spy/setup_spy.sh',
-    install_dir : 'share/doc/pcsc-lite')
+    install_dir : get_option('datadir') / 'doc' / meson.project_name()+'-'+meson.project_version())
 
   run_command('pod2man',
     ['--date=2024-01-01', 'src/spy/pcsc-spy.pod', 'pcsc-spy.1'],
