switch to meson (#30)

switch to a meson-based build system
This commit is contained in:
Alexander Epaneshnikov 2021-06-19 05:53:04 +03:00 committed by GitHub
commit 0c09fe5449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 96 additions and 48 deletions

4
services/meson.build Normal file
View file

@ -0,0 +1,4 @@
systemd = dependency('systemd', required: get_option('systemd'))
if systemd.found()
subdir('systemd')
endif

View file

@ -1 +0,0 @@
default_voice=

View file

@ -6,10 +6,10 @@ After=systemd-udev-settle.service sound.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/espeakup
PIDFile=/run/espeakup.pid
ExecStartPre=+/sbin/modprobe speakup_soft
ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
Environment="default_voice="
ExecStartPre=+modprobe speakup_soft
ExecStart=@bindir@/espeakup --default-voice=${default_voice}
ExecReload=kill -HUP $MAINPID
Restart=always

View file

@ -0,0 +1,17 @@
unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
prefixdir = get_option('prefix')
bindir = join_paths(prefixdir, get_option('bindir'))
unit_conf = configuration_data()
unit_conf.set('bindir', bindir)
service_file = configure_file(
input : 'espeakup.service.in',
output : 'espeakup.service',
configuration : unit_conf
)
install_data(service_file,
install_dir : unitdir
)