mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/persistent-cache-cpp: new aport
This commit is contained in:
parent
d2ab1147f7
commit
37d3e1fd1a
53
testing/persistent-cache-cpp/APKBUILD
Normal file
53
testing/persistent-cache-cpp/APKBUILD
Normal 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
|
||||
"
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user