[arch-commits] Commit in spdlog/repos (2 files)
Brett Cornwall
ainola at archlinux.org
Wed Oct 2 01:04:12 UTC 2019
Date: Wednesday, October 2, 2019 @ 01:04:12
Author: ainola
Revision: 512403
archrelease: copy trunk to community-staging-x86_64
Added:
spdlog/repos/community-staging-x86_64/
spdlog/repos/community-staging-x86_64/PKGBUILD
(from rev 512402, spdlog/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: spdlog/repos/community-staging-x86_64/PKGBUILD (from rev 512402, spdlog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-02 01:04:12 UTC (rev 512403)
@@ -0,0 +1,45 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Luca Weiss
+# Contributor: Michael Yang
+
+pkgname=spdlog
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Very fast, header-only/compiled, C++ logging library'
+arch=('x86_64')
+url='https://github.com/gabime/spdlog'
+license=('MIT')
+depends=('fmt')
+makedepends=('cmake')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/gabime/spdlog/archive/v$pkgver.tar.gz"
+)
+sha256sums=('3291958eb54ed942d1bd3aef1b4f8ccf70566cbc04d34296ec61eb96ceb73cff')
+
+prepare() {
+ mkdir build
+}
+
+build() {
+ cd build
+ cmake ../"$pkgname-$pkgver" \
+ -DSPDLOG_BUILD_BENCH=OFF \
+ -DSPDLOG_BUILD_EXAMPLES=OFF \
+ -DSPDLOG_FMT_EXTERNAL=ON \
+ -DSPDLOG_BUILD_SHARED=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+check() {
+ cd build
+ make test
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../"$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
+}
More information about the arch-commits
mailing list