update spec

This commit is contained in:
Wim Taymans 2017-08-17 19:01:11 +02:00
parent 29eb58f7a2
commit 593df62ccc
4 changed files with 23 additions and 14 deletions

View file

@ -1,15 +1,14 @@
systemd_install_dir = '@0@/systemd/user'.format(get_option('libdir'))
systemd = dependency('systemd', required: true)
if systemd.found()
systemd_user_services_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
endif
pipewire_systemd_files = [
'pipewire.socket',
]
install_data(pipewire_systemd_files, install_dir : systemd_install_dir)
install_data(sources : 'pipewire.socket', install_dir : systemd_user_services_dir)
systemd_config = configuration_data()
systemd_config.set('PW_BINARY', '@0@/pipewire'.format(pipewire_bindir))
systemd_config.set('PW_BINARY', join_paths(pipewire_bindir, 'pipewire'))
configure_file(input : 'pipewire.service.in',
output : 'pipewire.service',
configuration : systemd_config,
install_dir : systemd_install_dir)
install_dir : systemd_user_services_dir)