[arch-commits] Commit in spdlog/repos (2 files)

Brett Cornwall ainola at gemini.archlinux.org
Sat Feb 5 04:26:02 UTC 2022


    Date: Saturday, February 5, 2022 @ 04:26:01
  Author: ainola
Revision: 1126390

archrelease: copy trunk to community-testing-x86_64

Added:
  spdlog/repos/community-testing-x86_64/
  spdlog/repos/community-testing-x86_64/PKGBUILD
    (from rev 1126389, spdlog/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: spdlog/repos/community-testing-x86_64/PKGBUILD (from rev 1126389, spdlog/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-02-05 04:26:01 UTC (rev 1126390)
@@ -0,0 +1,45 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Luca Weiss
+# Contributor: Michael Yang
+
+pkgname=spdlog
+pkgver=1.9.2
+pkgrel=3
+pkgdesc='Very fast, header-only/compiled, C++ logging library'
+arch=('x86_64')
+url='https://github.com/gabime/spdlog'
+license=('MIT')
+depends=('libfmt.so')
+makedepends=('cmake')
+options=(debug)
+source=(
+    "$pkgname-$pkgver.tar.gz::https://github.com/gabime/spdlog/archive/v$pkgver.tar.gz"
+)
+provides=(
+    'libspdlog.so'
+)
+sha256sums=('6fff9215f5cb81760be4cc16d033526d1080427d236e86d70bb02994f85e3d38')
+
+build() {
+    export CFLAGS+=" ${CPPFLAGS}"
+    export CXXFLAGS+=" ${CPPFLAGS}"
+    cmake -B build -S "$pkgname-$pkgver" \
+        -DSPDLOG_BUILD_BENCH=OFF \
+        -DSPDLOG_FMT_EXTERNAL=ON \
+        -DSPDLOG_BUILD_SHARED=ON \
+        -DSPDLOG_BUILD_TESTS=ON \
+        -DCMAKE_BUILD_TYPE=None \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -Wno-dev
+    make -C build
+}
+
+check() {
+    make -C build test
+}
+
+package() {
+    make -C build DESTDIR="$pkgdir" install
+    install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list