1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00

testing/simpleble: upgrade to 0.10.3

This commit is contained in:
Leon White 2025-07-09 10:21:35 +02:00 committed by mio
parent 5b9e8057bd
commit 28a4644ed3
3 changed files with 7 additions and 37 deletions

View file

@ -1,6 +1,6 @@
# Maintainer: # Maintainer:
pkgname=simpleble pkgname=simpleble
pkgver=0.8.1 pkgver=0.10.3
pkgrel=0 pkgrel=0
pkgdesc="Cross-platform library for bluetooth low-energy" pkgdesc="Cross-platform library for bluetooth low-energy"
url="https://github.com/simpleble/simpleble" url="https://github.com/simpleble/simpleble"
@ -20,7 +20,6 @@ subpackages="
" "
source="$pkgname-$pkgver.tar.gz::https://github.com/simpleble/simpleble/archive/refs/tags/v$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/simpleble/simpleble/archive/refs/tags/v$pkgver.tar.gz
bluez.patch bluez.patch
fmt.patch
" "
options="!check" # tests require plain options="!check" # tests require plain
@ -29,15 +28,13 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_SKIP_INSTALL_RPATH=ON \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON
-DLIBFMT_VENDORIZE=OFF
cmake --build build-ble cmake --build build-ble
cmake -B build-bluez -G Ninja -S simplebluez \ cmake -B build-bluez -G Ninja -S simplebluez \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_SKIP_INSTALL_RPATH=ON \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON
-DLIBFMT_VENDORIZE=OFF
cmake --build build-bluez cmake --build build-bluez
} }
@ -59,7 +56,6 @@ lib_bluez() {
} }
sha512sums=" sha512sums="
059df611a8a529d6ad177e13f3a639a76b9dda8c72395bf660c63239c519096761e123459b814bbfac2e3e3407119477373453891c88daa4532e56f2c77da223 simpleble-0.8.1.tar.gz 0f31bec8e2a350abfec864362c5ab04d9226a15fcbe829da600169688c7dbb19a5a61d32a61609dba101bf101b4a277a23c51f05f1df5605657fb5d737a04f0a simpleble-0.10.3.tar.gz
3bf34d51bb267077af537eaf6fec54c9049c0a3f85e4724afad76c7ba3d0ed3be73dcc96bc7d69ddcdfb40a823bd236970880e0c4439b9e70283af53e8cbc085 bluez.patch 36a75766a4b67f7cb7e1fb1f751bbaac4948957056940e1cb3dc68a58811f41b69badda8c15912ef20a904edc8da43ac6131bd762e978aabb82b693b2d2fb846 bluez.patch
21a09cf0f0c01eb28d9d0700e5283e1f80107a280cfbdaf8c549466aa7411dd83585ed4b82ed2e1645163f28d1313dd914b9d4a098457c37b67452c386dcdf34 fmt.patch
" "

View file

@ -1,9 +1,9 @@
the bluez lib doesn't expose any symbols for some reason, so manually do it for the used one the bluez lib doesn't expose any symbols for some reason, so manually do it for the used one
diff --git a/simplebluez/src/Device.cpp b/simplebluez/src/Device.cpp diff --git a/simplebluez/src/Device.cpp b/simplebluez/src/Device.cpp
index e03957c..c62817b 100644 index d00badb..086a11a 100644
--- a/simplebluez/src/Device.cpp --- a/simplebluez/src/Device.cpp
+++ b/simplebluez/src/Device.cpp +++ b/simplebluez/src/Device.cpp
@@ -53,7 +53,7 @@ std::shared_ptr<Characteristic> Device::get_characteristic(const std::string& se @@ -50,7 +50,7 @@ std::shared_ptr<Characteristic> Device::get_characteristic(const std::string& se
return service->get_characteristic(characteristic_uuid); return service->get_characteristic(characteristic_uuid);
} }

View file

@ -1,26 +0,0 @@
diff --git a/simpleble/CMakeLists.txt b/simpleble/CMakeLists.txt
index 29d1929..2b90a38 100644
--- a/simpleble/CMakeLists.txt
+++ b/simpleble/CMakeLists.txt
@@ -20,10 +20,6 @@ option(SIMPLEBLE_PLAIN "Use plain version of SimpleBLE" OFF)
if(NOT TARGET fmt::fmt-header-only)
option(LIBFMT_VENDORIZE "Enable vendorized libfmt" ON)
find_package(fmt REQUIRED)
-
- if(TARGET fmt)
- set_target_properties(fmt PROPERTIES EXCLUDE_FROM_ALL TRUE)
- endif()
endif()
if(SIMPLEBLE_TEST)
diff --git a/simplebluez/CMakeLists.txt b/simplebluez/CMakeLists.txt
index 53cd80d..bc77361 100644
--- a/simplebluez/CMakeLists.txt
+++ b/simplebluez/CMakeLists.txt
@@ -21,7 +21,6 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/epilogue.cmake)
option(LIBFMT_VENDORIZE "Enable vendorized libfmt" ON)
find_package(fmt REQUIRED)
-set_target_properties(fmt PROPERTIES EXCLUDE_FROM_ALL TRUE)
find_package(DBus1 REQUIRED)