mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
# 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
|
|
"
|