testing/lomiri-location-service: fix build

This commit is contained in:
Celeste 2024-06-26 02:51:31 +00:00
parent f62d145289
commit a970b048cb
2 changed files with 13 additions and 0 deletions

View File

@ -32,6 +32,7 @@ makedepends="$depends_dev
checkdepends="coreutils"
source="https://gitlab.com/ubports/development/core/location-service/-/archive/$pkgver/location-service-$pkgver.tar.gz
cstdint.patch
glog.patch
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
builddir="$srcdir/location-service-$pkgver"
@ -59,4 +60,5 @@ package() {
sha512sums="
cb336690469c97780348de86ba6881228160f3f7ef5c548cd7238fcaeca5f35b1fbd2fb5897d20a805e922b63e2592c159d93747ecfdd7ef94b40c4d5b708838 location-service-3.1.0.tar.gz
a593923e4a997977bdab1b7e72bfefbe401c5cb12c15d137e67c7e3527d3b0cd2be10a376140f081a5922d347bb5bce4c88140f33e53f1580bfdaad2a9f36f46 cstdint.patch
dd27a2902923321da01ab286d0bad1eba0a112b81c0c40b988bf4c0ae119577e7347b9ca8af6781f22330888a3298105cf072c66e77f1e77ef69ee9664cade9b glog.patch
"

View File

@ -0,0 +1,11 @@
--- a/cmake/FindGLog.cmake
+++ b/cmake/FindGLog.cmake
@@ -8,6 +8,8 @@
find_library(GLog_LIBRARY libglog.so
HINTS /usr/lib/arm-linux-gnueabihf/)
+add_compile_definitions(GLOG_USE_GLOG_EXPORT)
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GLog DEFAULT_MSG GLog_LIBRARY GLog_INCLUDE_DIR)