mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/lomiri-api: new aport
This commit is contained in:
parent
9f69e481d4
commit
893a6c2027
37
testing/lomiri-api/0001-Add-missing-headers-for-GCC13.patch
Normal file
37
testing/lomiri-api/0001-Add-missing-headers-for-GCC13.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From 029b42a9b4d5467951595dff8bc536eb5a9e3ef7 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Weiss <luca@z3ntu.xyz>
|
||||
Date: Wed, 7 Jun 2023 09:22:27 +0200
|
||||
Subject: [PATCH] Add missing headers for GCC13
|
||||
|
||||
---
|
||||
include/lomiri/util/FileIO.h | 1 +
|
||||
include/lomiri/util/ResourcePtr.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/include/lomiri/util/FileIO.h b/include/lomiri/util/FileIO.h
|
||||
index b2ad19e..815bf8e 100644
|
||||
--- a/include/lomiri/util/FileIO.h
|
||||
+++ b/include/lomiri/util/FileIO.h
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
+#include <cstdint>
|
||||
|
||||
namespace lomiri
|
||||
{
|
||||
diff --git a/include/lomiri/util/ResourcePtr.h b/include/lomiri/util/ResourcePtr.h
|
||||
index b385590..701bfb3 100644
|
||||
--- a/include/lomiri/util/ResourcePtr.h
|
||||
+++ b/include/lomiri/util/ResourcePtr.h
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <mutex>
|
||||
#include <type_traits>
|
||||
+#include <stdexcept>
|
||||
|
||||
namespace lomiri
|
||||
{
|
||||
--
|
||||
2.42.0
|
||||
|
||||
50
testing/lomiri-api/APKBUILD
Normal file
50
testing/lomiri-api/APKBUILD
Normal file
@ -0,0 +1,50 @@
|
||||
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||||
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
||||
pkgname=lomiri-api
|
||||
pkgver=0.2.1
|
||||
pkgrel=0
|
||||
pkgdesc="API for Lomiri shell integration"
|
||||
url="https://gitlab.com/ubports/development/core/lomiri-api"
|
||||
arch="all"
|
||||
license="LGPL-3.0-only"
|
||||
depends_dev="
|
||||
gtest-dev
|
||||
qt5-qtdeclarative-dev
|
||||
"
|
||||
makedepends="
|
||||
$depends_dev
|
||||
cmake
|
||||
cmake-extras
|
||||
gmock
|
||||
libqtdbustest
|
||||
samurai
|
||||
"
|
||||
checkdepends="dbus"
|
||||
source="https://gitlab.com/ubports/development/core/lomiri-api/-/archive/$pkgver/lomiri-api-$pkgver.tar.gz
|
||||
0001-Add-missing-headers-for-GCC13.patch
|
||||
qmltestrunner.patch
|
||||
"
|
||||
subpackages="$pkgname-dev"
|
||||
|
||||
build() {
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=None
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9eb356d6733a780aabb8e8dde412c0aafca5dd021e1b093f5b369c778da0c0ae933e0a8f527528a85ae989d1856f8a3691117bacda1829716dadf253852ffb96 lomiri-api-0.2.1.tar.gz
|
||||
08c2b3bd7d583064f60c29accd74d10cad64c221e79b84ec973dd0e31b0bfb180a30f3800c1695686d172198a0a15fdf4ae6860e84413bab2d19e89e693b32f7 0001-Add-missing-headers-for-GCC13.patch
|
||||
04c316667ed5892c55278b01377d4d9c1a6ae14a330bfa594e5e54371d37441747684ab553799cb5e7804f4c68d181e78caeb8279491b9f5302a4e70095c74af qmltestrunner.patch
|
||||
"
|
||||
15
testing/lomiri-api/qmltestrunner.patch
Normal file
15
testing/lomiri-api/qmltestrunner.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Alpine uses versioned Qt binaries
|
||||
|
||||
diff --git a/cmake/modules/QmlTest.cmake b/cmake/modules/QmlTest.cmake
|
||||
index 8241703..d209b55 100644
|
||||
--- a/cmake/modules/QmlTest.cmake
|
||||
+++ b/cmake/modules/QmlTest.cmake
|
||||
@@ -15,7 +15,7 @@
|
||||
# qmltest_DEFAULT_IMPORT_PATHS
|
||||
# qmltest_DEFAULT_PROPERTIES
|
||||
|
||||
-find_program(qmltestrunner_exe qmltestrunner)
|
||||
+find_program(qmltestrunner_exe qmltestrunner-qt5)
|
||||
|
||||
if(NOT qmltestrunner_exe)
|
||||
message(FATAL_ERROR "Could not locate qmltestrunner.")
|
||||
Loading…
x
Reference in New Issue
Block a user