void-packages/srcpkgs/cereal/template

24 lines
692 B
Bash

# Template file for 'cereal'
pkgname=cereal
version=1.3.2
revision=1
build_style=cmake
configure_args="-DSKIP_PORTABILITY_TEST=1 -DTHREAD_SAFE=ON -DWITH_WERROR=OFF"
short_desc="Header-only C++ serialization library"
makedepends="boost-devel"
maintainer="Zlice <zlice555@gmail.com>"
license="BSD-3-Clause"
homepage="https://uscilab.github.io/cereal"
distfiles="https://github.com/USCiLab/cereal/archive/v${version}.tar.gz"
checksum=16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
post_install() {
vlicense LICENSE
}