xkeyboard-config: don't set datadir

Also drop workarounds and patches that tried to fix the mess after
changing datadir.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2022-11-05 19:39:34 +01:00
parent 1bd660bc6c
commit ade673003c
2 changed files with 2 additions and 19 deletions

View File

@ -18,12 +18,10 @@ configure_package() {
}
pre_configure_target() {
PKG_MESON_OPTS_TARGET="-Dcompat-rules=true \
-Ddatadir=lib"
PKG_MESON_OPTS_TARGET="-Dcompat-rules=true"
if [ "${DISPLAYSERVER}" = "x11" ]; then
PKG_MESON_OPTS_TARGET+=" -Dxkb-base=${XORG_PATH_XKB} \
-Dxorg-rules-symlinks=true"
PKG_MESON_OPTS_TARGET+=" -Dxorg-rules-symlinks=true"
else
PKG_MESON_OPTS_TARGET+=" -Dxorg-rules-symlinks=false"
fi

View File

@ -1,15 +0,0 @@
--- /meson.build
+++ /meson.build
@@ -4,7 +4,10 @@
meson_version: '>= 0.54.0')
dir_data = join_paths(get_option('prefix'), get_option('datadir'))
-dir_xkb_base = join_paths(dir_data, 'X11', 'xkb')
+dir_xkb_base = get_option('xkb-base')
+if dir_xkb_base == ''
+ dir_xkb_base = join_paths(dir_data, 'X11', 'xkb')
+endif
dir_xkb_rules = join_paths(dir_xkb_base, 'rules')
dir_man7 = join_paths(get_option('prefix'), get_option('mandir'), 'man7')
dir_pkgconfig = join_paths(dir_data, 'pkgconfig')