mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
57 lines
1.8 KiB
Text
57 lines
1.8 KiB
Text
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
# Contributor: Aster Boese <asterboese@mailbox.org>
|
|
pkgname=persistent-cache-cpp
|
|
pkgver=1.0.7
|
|
pkgrel=4
|
|
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
|
|
0001-src-core-Add-library-versioning.patch
|
|
0002-tests-core-persistent_string_cache-speed_test.cpp-Ad.patch
|
|
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
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
752c758155510c2168c2a4982938867e133b8d8b2bbf3882bce8a2d83fd1547bbcee07dcd239b1732d1dda68b645f5e5fb1c02d1b316218fbb82fb8463ef8afb persistent-cache-cpp-1.0.7.tar.gz
|
|
0bdfcdf80548fe827850f8813bf084e11cddd6bf596093d8d005528ecaa86fc0b752d07432fa588e1e95e292cc0c0df6c16e4f957aa016de7a844d20b7f65a9c 0001-src-core-Add-library-versioning.patch
|
|
2b86ef97d032318fa8183468629a7b678b166b96559ca1ca735c845f9d7617489c639d04e414ac105670943602cd55af854b4c8c7092b23077cd3619570c5652 0002-tests-core-persistent_string_cache-speed_test.cpp-Ad.patch
|
|
668963ebba223ef21b3d87d054b29f4e11c849b808347e6aa74a2434c3f1f4d8d35159d6ae60a47db3e026b82dec913be5771e389834c393f2cfc2f5d0d2b137 remove-docs-html-from-makefile.patch
|
|
"
|