void-packages/srcpkgs/cereal/template

26 lines
707 B
Bash
Raw Normal View History

# 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
}