project(
'c8-theme',
version: '0.1.0',
license: 'CC0-1.0 AND OFL-1.1',
meson_version: '>=1.3.0',
)
datadir = get_option('datadir')
install_subdir('fonts/selawik', install_dir: datadir / 'fonts')
install_subdir('icons/cont8nuum', install_dir: datadir / 'icons')
if get_option('sddm-theme')
# The greeter runs as its own user, so the theme carries its fonts
sddm_theme = datadir / 'sddm' / 'themes' / 'cont8nuum'
install_subdir('sddm/cont8nuum', install_dir: datadir / 'sddm' / 'themes',
exclude_files: 'fonts')
install_data('fonts/selawik/selawk.ttf', 'fonts/selawik/selawkl.ttf',
'fonts/selawik/selawksl.ttf', 'fonts/selawik/selawksb.ttf',
'fonts/selawik/LICENSE.txt',
install_dir: sddm_theme / 'fonts')
endif
summary({ 'SDDM theme': get_option('sddm-theme') }, bool_yn: true)