diff --git a/meson.build b/meson.build index 5a0228ee..ec13d93a 100644 --- a/meson.build +++ b/meson.build @@ -234,7 +234,7 @@ pkgconfig.generate( # Restore the SELinux context for the libinput.so.a.b.c on install # meson bug https://github.com/mesonbuild/meson/issues/1967 meson.add_install_script('src/libinput-restore-selinux-context.sh', - get_option('libdir'), + join_paths(get_option('prefix'), get_option('libdir')), lib_libinput.full_path()) ############ documentation ############ diff --git a/src/libinput-restore-selinux-context.sh b/src/libinput-restore-selinux-context.sh index 3b1c555b..606b5b08 100644 --- a/src/libinput-restore-selinux-context.sh +++ b/src/libinput-restore-selinux-context.sh @@ -7,6 +7,6 @@ libdir="$1" sofile=$(basename "$2") if command -v restorecon >/dev/null; then - echo "Restoring SELinux context on $MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile" - restorecon "$MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile" + echo "Restoring SELinux context on ${DESTDIR}${libdir}/${sofile}" + restorecon "${DESTDIR}${libdir}/${sofile}" fi