summaryrefslogtreecommitdiff
path: root/user/spdlog
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-09-13 00:54:28 -0500
committerMax Rees <maxcrees@me.com>2020-02-04 19:36:03 -0600
commitcaca406f828ee712d9f4f6a5591ae7f9d532a2b2 (patch)
tree5536a268a26969eeb3457c6457b22d673b319653 /user/spdlog
parentef34c5b3c35acbf76165aee7adb429fa38bcf7b1 (diff)
downloadpackages-caca406f828ee712d9f4f6a5591ae7f9d532a2b2.tar.gz
packages-caca406f828ee712d9f4f6a5591ae7f9d532a2b2.tar.bz2
packages-caca406f828ee712d9f4f6a5591ae7f9d532a2b2.tar.xz
packages-caca406f828ee712d9f4f6a5591ae7f9d532a2b2.zip
user/spdlog: new package
Diffstat (limited to 'user/spdlog')
-rw-r--r--user/spdlog/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/spdlog/APKBUILD b/user/spdlog/APKBUILD
new file mode 100644
index 000000000..3f25d32bb
--- /dev/null
+++ b/user/spdlog/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Max Rees <maxcrees@me.com>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=spdlog
+pkgver=1.5.0
+pkgrel=0
+pkgdesc="C++ header-only logging library"
+url="https://github.com/gabime/spdlog"
+arch="all"
+license="MIT AND BSD-2-Clause"
+depends=""
+makedepends="cmake"
+source="$pkgname-$pkgver.tar.gz::https://github.com/gabime/spdlog/archive/v$pkgver.tar.gz"
+
+build() {
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DSPDLOG_BUILD_SHARED=ON \
+ -DSPDLOG_BUILD_TESTS=ON \
+ -DSPDLOG_BUILD_BENCH=OFF \
+ -DSPDLOG_BUILD_EXAMPLES=OFF
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="78991c943dd95af563c4b29545b9b5d635caf1af5031262dde734ecf70c0b4ae866d954ee77b050f9f0cc089a3bc57ee9583895e51cb00dd1cc6c10ff905ca34 spdlog-1.5.0.tar.gz"