diff options
Diffstat (limited to 'community/msgpack-cxx/APKBUILD')
-rw-r--r-- | community/msgpack-cxx/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/msgpack-cxx/APKBUILD b/community/msgpack-cxx/APKBUILD new file mode 100644 index 00000000000..01bad289869 --- /dev/null +++ b/community/msgpack-cxx/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Daniel Sabogal <dsabogalcc@gmail.com> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=msgpack-cxx +# When bumping, rebuild all aports with msgpack-cxx-dev in makedepends. +pkgver=6.1.1 +pkgrel=1 +pkgdesc="An efficient object serialization library for C++" +url="https://msgpack.org" +arch="all" +license="BSL-1.0" +depends_dev="boost-dev" +makedepends="$depends_dev cmake samurai" +checkdepends="gtest-dev zlib-dev" +subpackages="$pkgname-dev" +source="https://github.com/msgpack/msgpack-c/releases/download/cpp-$pkgver/msgpack-cxx-$pkgver.tar.gz" + +build() { + cmake -G Ninja -B build \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DMSGPACK_BUILD_EXAMPLES=OFF \ + -DMSGPACK_BUILD_TESTS=ON \ + -DMSGPACK_CXX17=ON + cmake --build build +} + +check() { + cmake --build build --target test +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +6a3df977e7a9c8b50feb7c88cff7a78814d1d41d2f7a657dd37d6cfcfe24f44746f40a6dd46bd5dba7ea59d94b9e40c2baa62c08d9b02168ac93c58cbff3becc msgpack-cxx-6.1.1.tar.gz +" |