New package: cereal-1.3.0

closes #18279
This commit is contained in:
zlice 2020-01-12 18:27:10 -05:00 committed by John
parent 49293c7f98
commit 9636b9b343

25
srcpkgs/cereal/template Normal file
View file

@ -0,0 +1,25 @@
# Template file for 'cereal'
pkgname=cereal
version=1.3.0
revision=1
archs=noarch
build_style=cmake
configure_args="-DSKIP_PORTABILITY_TEST=1 -DTHREAD_SAFE=ON -DWITH_WERROR=OFF"
short_desc="Header-only C++ serialization library"
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=329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5
case "$XBPS_TARGET_MACHINE" in
armv[56]*|ppc|ppc-musl*)
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
;;
esac
post_install() {
vlicense LICENSE
}