kind: autotools
description: Bluetooth protocol stack for Linux
depends:
- glib-common.bst
- foundation.bst
- bluetooth/libical.bst
sources:
- kind: git
  url: upstream:bluez
  track: baserock/5.43+service-api
  ref: 6c68ebf4d31a04459285169af83714b610fffb1a
config:
  configure-commands:
  - autoreconf -ivf
  - ./configure --prefix="%{prefix}" --enable-tools --enable-service --enable-test
    --enable-library --sysconfdir=/etc --localstatedir=/var --libexecdir=/lib
  install-commands:
  - make DESTDIR="%{install-root}" install
  - mkdir -p "%{install-root}/etc/systemd/system/bluetooth.target.wants"
  - ln -s /lib/systemd/system/bluetooth.service "%{install-root}/etc/systemd/system/bluetooth.target.wants/bluetooth.service"
  - ln -s /lib/systemd/system/bluetooth.service "%{install-root}/etc/systemd/system/dbus-org.bluez.service"
