28 lines
776 B
Bash
28 lines
776 B
Bash
# Template file for 'spdlog'
|
|
pkgname=spdlog
|
|
version=1.9.1
|
|
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=9a452cfa24408baccc9b2bc2d421d68172a7630c99e9504a14754be840d31a62
|
|
|
|
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
|
|
}
|
|
}
|