blob: d5ede91c8bd90617fcc89fd46350da934d488bbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Isho Antar <IshoAntar@protonmail.com>
# Contributor: Michael Yang <ohmyarchlinux@protonmail.com>
pkgname=spdlog-git
pkgver=1.12.0.r8.g2312489b
pkgrel=2
pkgdesc="Very fast, header only, C++ logging library"
arch=(x86_64)
url="https://github.com/gabime/spdlog"
license=(MIT)
depends=(glibc gcc-libs fmt)
makedepends=(git cmake)
provides=(spdlog libspdlog.so)
conflicts=(spdlog)
source=("git+https://github.com/gabime/spdlog.git#branch=v1.x")
sha512sums=('SKIP')
pkgver() {
cd spdlog
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "spdlog" -Wno-dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_EXAMPLE=OFF \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_FMT_EXTERNAL=ON
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 spdlog/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|