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

Brett Cornwall ainola at gemini.archlinux.org
Tue Apr 5 18:46:14 UTC 2022


    Date: Tuesday, April 5, 2022 @ 18:46:14
  Author: ainola
Revision: 1181485

archrelease: copy trunk to community-staging-x86_64

Added:
  spdlog/repos/community-staging-x86_64/
  spdlog/repos/community-staging-x86_64/PKGBUILD
    (from rev 1181484, spdlog/trunk/PKGBUILD)

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

Copied: spdlog/repos/community-staging-x86_64/PKGBUILD (from rev 1181484, spdlog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-05 18:46:14 UTC (rev 1181485)
@@ -0,0 +1,45 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Luca Weiss
+# Contributor: Michael Yang
+
+pkgname=spdlog
+pkgver=1.10.0
+pkgrel=1
+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=('697f91700237dbae2326b90469be32b876b2b44888302afbc7aceb68bcfe8224')
+
+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