testing/persistent-cache-cpp: new aport

This commit is contained in:
Luca Weiss 2023-11-13 10:43:16 +01:00 committed by Bart Ribbers
parent d2ab1147f7
commit 37d3e1fd1a
2 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
# Contributor: Brandon Boese <brandonboese@protonmail.com>
pkgname=persistent-cache-cpp
pkgver=1.0.6
pkgrel=0
pkgdesc="Cache of key-value pairs with persistent storage for C++ 11"
url="https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp"
arch="all"
license="LGPL-3.0-only"
depends="
dconf
"
depends_dev="
boost-dev
leveldb-dev
"
makedepends="
$depends_dev
cmake
cmake-extras
gtest-dev
samurai
"
checkdepends="
xvfb-run
"
subpackages="$pkgname-dev $pkgname-doc"
source="https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/archive/$pkgver/persistent-cache-cpp-$pkgver.tar.gz
remove-docs-html-from-makefile.patch
"
options="!check" # 91% tests passed, 1 tests failed out of 11
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="
fd87a2717adb4e4fe4eda56ea0e10b7e44db272bb256ee7e9ef1847a545d204fd54294f12da564bd920c1f7294f82960b2239d5dfbd520cfdf2f3b31fbf9bd4f persistent-cache-cpp-1.0.6.tar.gz
36ff4a45f203df026c595b0bdc39dd1a40a8fd43dbc30d06184bbfa9a34d26a469e2faca8574b7a18bfbdcd6da36a1f1dd7f486a01f59db4d7d1264506916f30 remove-docs-html-from-makefile.patch
"

View File

@ -0,0 +1,22 @@
From 3c00fe8ce7eb6e7e0fbe79457e0f424da0dd01dd Mon Sep 17 00:00:00 2001
From: Brandon Boese <brandonboese@protonmail.com>
Date: Thu, 26 Oct 2023 02:45:23 -0400
Subject: [PATCH] remove docs/html from makefile
---
CMakeLists.txt | 2 --
1 file changed, 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0f0d04f..7e8b0e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,5 +126,3 @@ add_doxygen(
*::Priv
ALL
)
-install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html
- DESTINATION share/doc/${LIBNAME})
--
2.42.0