contrib/spdlog/Pkgfile

26 lines
609 B
Plaintext

# Description: Fast C++ logging library
# URL: https://github.com/gabime/spdlog
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: fmt meson ninja
name=spdlog
version=1.4.2
release=2
source=(https://github.com/gabime/spdlog/archive/v$version/$name-$version.tar.gz
include-cassert.patch)
build() {
cd $name-$version
# https://github.com/gabime/spdlog/issues/1340
patch -Np1 -i $SRC/include-cassert.patch
mkdir build
cd build
meson .. \
--prefix=/usr \
-D external_fmt=true \
-D enable_examples=false \
-D library_type=static
ninja
DESTDIR=$PKG ninja install
}