diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-22 21:38:49 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-22 21:40:38 -0300 |
commit | f206e14255f7ab7364310a27e50c1aa750f9b67c (patch) | |
tree | d08faa5b14f8e9d021178dd5db390e8d9778e82d /testing | |
parent | 9493dc41348f42e5b738ec1af6241030c924adf0 (diff) | |
download | aports-f206e14255f7ab7364310a27e50c1aa750f9b67c.tar.bz2 aports-f206e14255f7ab7364310a27e50c1aa750f9b67c.tar.xz |
testing/spdlog: new aport
https://github.com/gabime/spdlog
Fast C++ logging library
Diffstat (limited to 'testing')
-rw-r--r-- | testing/spdlog/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/spdlog/APKBUILD b/testing/spdlog/APKBUILD new file mode 100644 index 0000000000..c81595be14 --- /dev/null +++ b/testing/spdlog/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=spdlog +pkgver=1.3.1 +pkgrel=0 +pkgdesc="Fast C++ logging library" +options="!check" # Unable to run tests +url="https://github.com/gabime/spdlog" +arch="all" +license="MIT" +makedepends="cmake" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/gabime/$pkgname/archive/v$pkgver.tar.gz" + +build() { + mkdir build + cd build + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DSPDLOG_BUILD_EXAMPLES=OFF \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_TESTS=OFF \ + -DSPDLOG_SANITIZE_ADDRESS=OFF \ + -DSPDLOG_FMT_EXTERNAL=OFF \ + ${CMAKE_CROSSOPTS} .. + make +} + +package() { + mkdir -p "$pkgdir" + make -C build DESTDIR="$pkgdir" install +} +sha512sums="a851a44b6384f493dd312ae0a611d068af46bbfe8daf1c2f61f13d8836a3801f41b339074fbe8da8e428131c82fa5c4a9e3320a55cbdd4b7aff8bb349dfff7dd spdlog-1.3.1.tar.gz" |