void-packages/srcpkgs/spdlog/template
2021-08-18 16:01:24 -03:00

28 lines
776 B
Bash

# Template file for 'spdlog'
pkgname=spdlog
version=1.9.2
revision=1
build_style=cmake
configure_args="-DSPDLOG_BUILD_EXAMPLE=OFF -DSPDLOG_FMT_EXTERNAL=ON
-DSPDLOG_BUILD_SHARED=ON"
hostmakedepends="pkg-config"
makedepends="fmt-devel"
depends="libspdlog>=${version}_${revision} fmt-devel"
short_desc="Fast C++ logging library"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="MIT"
homepage="https://github.com/gabime/spdlog"
distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
checksum=6fff9215f5cb81760be4cc16d033526d1080427d236e86d70bb02994f85e3d38
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
fi
libspdlog_package() {
short_desc+=" - libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vlicense LICENSE
}
}