mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 20:54:08 +02:00
34 lines
872 B
Text
34 lines
872 B
Text
# Contributor: Adam Jensen <adam@acj.sh>
|
|
# Maintainer: Adam Jensen <adam@acj.sh>
|
|
pkgname=cereal
|
|
pkgver=1.3.2
|
|
pkgrel=6
|
|
pkgdesc="A header-only C++11 library for serialization"
|
|
url="https://github.com/USCiLab/cereal"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
makedepends="boost-dev cmake doxygen samurai"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/USCiLab/cereal/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
-DSKIP_PORTABILITY_TEST=ON \
|
|
-DCMAKE_CXX_STANDARD=17 \
|
|
-DBUILD_TESTS="$(want_check && echo ON || echo OFF)" \
|
|
-DWITH_WERROR=OFF
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
98d306d6292789129675f1c5c5aedcb90cfcc1029c4482893a8f9b23f3c9755e5ed4762d7a528f215345cae6392e87cd8d89467115b6f031b41c8673d6b4b109 cereal-1.3.2.tar.gz
|
|
"
|