28 lines
776 B
Bash
28 lines
776 B
Bash
# Template file for 'spdlog'
|
|
pkgname=spdlog
|
|
version=1.8.2
|
|
revision=2
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/gabime/spdlog"
|
|
distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
|
|
checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
|
|
|
|
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
|
|
}
|
|
}
|