|
| 1 | +local versions = { |
| 2 | + ["5.88"] = { |
| 3 | + url = "https://github.com/bluez/bluez/archive/refs/tags/5.88.tar.gz", |
| 4 | + sha256 = "667203f5dba91cf8b2094239dd9b415b487146cb00d4653179c11723dce52f19", |
| 5 | + }, |
| 6 | +} |
| 7 | + |
| 8 | +-- compat.bluez — BlueZ 5.88 user-space Bluetooth headers and libbluetooth helpers (Linux). |
| 9 | +-- |
| 10 | +-- Form B source-built package compiling `*/lib/bluetooth/{bluetooth,hci,sdp,uuid}.c` |
| 11 | +-- and exposing `<bluetooth/*.h>` (`bluetooth.h`, `l2cap.h`, `hci.h`, `rfcomm.h`, `uuid.h`). |
| 12 | +-- Used on Linux alongside `gnome.gio` (`org.bluez` D-Bus + `AF_BLUETOOTH` sockets). |
| 13 | +package = { |
| 14 | + spec = "1", |
| 15 | + namespace = "compat", |
| 16 | + name = "bluez", |
| 17 | + description = "BlueZ 5.88 — Linux Bluetooth protocol stack headers and libbluetooth library", |
| 18 | + licenses = { "GPL-2.0-or-later", "LGPL-2.1-or-later" }, |
| 19 | + repo = "https://github.com/bluez/bluez", |
| 20 | + type = "package", |
| 21 | + |
| 22 | + extensions = { |
| 23 | + autoupdate = { |
| 24 | + tag = "${version}", |
| 25 | + url = "https://github.com/bluez/bluez/archive/refs/tags/${tag}.tar.gz", |
| 26 | + }, |
| 27 | + }, |
| 28 | + |
| 29 | + xpm = { |
| 30 | + linux = { ["5.88"] = versions["5.88"] }, |
| 31 | + }, |
| 32 | + |
| 33 | + mcpp = { |
| 34 | + language = "c++23", |
| 35 | + import_std = false, |
| 36 | + c_standard = "c11", |
| 37 | + license_files = { "*/COPYING", "*/COPYING.LIB" }, |
| 38 | + include_dirs = { "*/lib", "*/lib/bluetooth" }, |
| 39 | + private_include_dirs = { "*/lib/bluetooth" }, |
| 40 | + |
| 41 | + cflags = { "-D_GNU_SOURCE" }, |
| 42 | + |
| 43 | + sources = { |
| 44 | + "*/lib/bluetooth/bluetooth.c", |
| 45 | + "*/lib/bluetooth/hci.c", |
| 46 | + "*/lib/bluetooth/sdp.c", |
| 47 | + "*/lib/bluetooth/uuid.c", |
| 48 | + }, |
| 49 | + |
| 50 | + targets = { |
| 51 | + bluetooth = { kind = "static" }, |
| 52 | + }, |
| 53 | + }, |
| 54 | +} |
0 commit comments