blueman_2.4.3.bb 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. DESCRIPTION = "Blueman is a GTK+ Bluetooth Manager"
  2. LICENSE = "GPL-3.0-only"
  3. LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
  4. DEPENDS = "gtk+3 glib-2.0 bluez5 python3-pygobject python3-cython-native"
  5. inherit meson gettext systemd gsettings pkgconfig python3native gtk-icon-cache features_check python3targetconfig
  6. REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
  7. SRC_URI = "git://github.com/blueman-project/blueman.git;protocol=https;branch=2-4-stable \
  8. file://0001-meson-DO-not-emit-absolute-path-when-S-B.patch"
  9. S = "${WORKDIR}/git"
  10. SRCREV = "7bcf919ad6ac0ee9a8c66b18b0ca98af877d4c8f"
  11. EXTRA_OEMESON = "-Druntime_deps_check=false \
  12. -Dsystemdsystemunitdir=${systemd_system_unitdir} \
  13. -Dsystemduserunitdir=${systemd_user_unitdir} \
  14. "
  15. SYSTEMD_SERVICE:${PN} = "${BPN}-mechanism.service"
  16. SYSTEMD_AUTO_ENABLE:${PN} = "disable"
  17. RRECOMMENDS:${PN} += "adwaita-icon-theme"
  18. RDEPENDS:${PN} += " \
  19. python3-core \
  20. python3-ctypes \
  21. python3-dbus \
  22. python3-pygobject \
  23. python3-terminal \
  24. python3-fcntl \
  25. packagegroup-tools-bluetooth \
  26. "
  27. PACKAGECONFIG ??= " \
  28. ${@bb.utils.filter('DISTRO_FEATURES', 'polkit pulseaudio ', d)} \
  29. thunar \
  30. "
  31. PACKAGECONFIG[thunar] = "-Dthunar-sendto=true,-Dthunar-sendto=false"
  32. PACKAGECONFIG[pulseaudio] = "-Dpulseaudio=true,-Dpulseaudio=false"
  33. PACKAGECONFIG[polkit] = "-Dpolicykit=true,-Dpolicykit=false"
  34. FILES:${PN} += " \
  35. ${datadir} \
  36. ${systemd_user_unitdir} \
  37. ${systemd_system_unitdir} \
  38. ${PYTHON_SITEPACKAGES_DIR} \
  39. "
  40. # In code, path to python is a variable that is replaced with path to native version of it
  41. # during the configure stage, e.g ../recipe-sysroot-native/usr/bin/python3-native/python3.
  42. # Replace it with #!/usr/bin/env python3
  43. do_install:append() {
  44. sed -i "1s/.*/#!\/usr\/bin\/env python3/" ${D}${prefix}/libexec/blueman-rfcomm-watcher \
  45. ${D}${prefix}/libexec/blueman-mechanism \
  46. ${D}${bindir}/blueman-adapters \
  47. ${D}${bindir}/blueman-applet \
  48. ${D}${bindir}/blueman-manager \
  49. ${D}${bindir}/blueman-sendto \
  50. ${D}${bindir}/blueman-services \
  51. ${D}${bindir}/blueman-tray
  52. }