contrib/spdlog/Pkgfile

22 lines
613 B
Plaintext
Raw Normal View History

2019-09-01 12:20:30 +02:00
# Description: Fast C++ logging library
# URL: https://github.com/gabime/spdlog
# Maintainer: Tim Biermann, tbier at posteo dot de
2020-11-08 14:26:08 +01:00
# Depends on: cmake fmt
2019-09-01 12:20:30 +02:00
name=spdlog
2020-12-21 16:09:11 +01:00
version=1.8.2
2020-01-13 20:35:08 +01:00
release=1
source=(https://github.com/gabime/spdlog/archive/v$version/$name-$version.tar.gz)
2019-09-01 12:20:30 +02:00
build() {
2020-11-08 14:26:08 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_SPDLOG+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_SPDLOG \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 01:04:37 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
2020-11-08 14:26:08 +01:00
-Wno-dev
2020-05-17 02:53:50 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2019-09-01 12:20:30 +02:00
}