blob: 850b0f92e281e158f0014cfefe3c0577bc34a5a3 (
plain)
1 # Description: Fast C++ logging library
2 # URL: https://github.com/gabime/spdlog
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: fmt
5
6 name=spdlog
7 version=1.9.2
8 release=1
9 source=(https://github.com/gabime/spdlog/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D SPDLOG_FMT_EXTERNAL=ON \
18 -D SPDLOG_INSTALL=ON \
19 -D SPDLOG_BUILD_SHARED=ON \
20 -D SPDLOG_BUILD_EXAMPLE=OFF \
21 -D SPDLOG_BUILD_BENCH=OFF \
22 -Wno-dev
23 cmake --build build
24 DESTDIR=$PKG cmake --install build
25 }
|