--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,7 @@
 # Can't use pkgconfig helper https://github.com/mesonbuild/meson/issues/2253
 conf = configuration_data()
 conf.set('prefix', prefix)
-conf.set('datarootdir', pkgdatadir)
+conf.set('datarootdir', datadir)
 conf.set('VERSION', meson.project_version())
 
 pkg = configure_file(configuration: conf,