debian: Wrap squeekboard in theme selector

This works around https://source.puri.sm/Librem5/squeekboard/issues/151 by providing a dark style to match the dark style of the layouts.
This commit is contained in:
Dorota Czaplejewicz
2019-11-11 18:09:38 +00:00
parent ea4bf3de29
commit 0bfaa8cd7a
4 changed files with 18 additions and 3 deletions

2
debian/control vendored
View File

@ -28,6 +28,8 @@ Homepage: https://source.puri.sm/Librem5/squeekboard
Package: squeekboard
Architecture: linux-any
Depends:
# for the Adwaita-dark theme
gnome-themes-extra-data,
${shlibs:Depends}
${misc:Depends}
Description: On-screen keyboard for Wayland

View File

@ -1,2 +1,2 @@
# yaml-rust 0.4.3 shares some roots with libyaml, including the string which lintian checks, creating a false positive
squeekboard binary: embedded-library usr/bin/squeekboard: libyaml
squeekboard binary: embedded-library usr/bin/squeekboard-real: libyaml

View File

@ -95,7 +95,20 @@ libsqueekboard = static_library('libsqueekboard',
'-DEEK_COMPILATION=1'],
)
squeekboard = executable('squeekboard',
# the straight binary needs to be demoted in favor of the wrapper script
# due to styling being inconsistent
bindir = join_paths(prefix, get_option('bindir'))
wrapper_conf = configuration_data()
wrapper_conf.set('bindir', bindir)
configure_file(
input: '../tools/squeekboard.in',
output: 'squeekboard',
install_dir: bindir,
configuration: wrapper_conf,
install: true,
)
squeekboard = executable('squeekboard-real',
'server-main.c',
wl_proto_sources,
squeekboard_resources,

View File

@ -12,4 +12,4 @@ for DIR in ${DIRS}; do
fi;
done;
exec $(which squeekboard)
exec @bindir@/squeekboard-real