diff options
author | Noel Kuntze <noel.kuntze@thermi.consulting> | 2024-03-10 10:56:08 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2024-04-26 06:17:47 +0000 |
commit | be77015b1ab563aab71609454538b0a4eeca7f21 (patch) | |
tree | 371a263a4cc7d5a1b9090373a78927250f9ab518 | |
parent | 67d7766f2a4c6423a70109984882b6d7051cf2c4 (diff) |
testing/libexmdpp: new aport
C++ implementation of the exmdb wire protocol for grommunio
-rwxr-xr-x | testing/libexmdbpp/0001-musl-ulong.patch | 13 | ||||
-rwxr-xr-x | testing/libexmdbpp/APKBUILD | 40 |
2 files changed, 53 insertions, 0 deletions
diff --git a/testing/libexmdbpp/0001-musl-ulong.patch b/testing/libexmdbpp/0001-musl-ulong.patch new file mode 100755 index 00000000000..11472934380 --- /dev/null +++ b/testing/libexmdbpp/0001-musl-ulong.patch @@ -0,0 +1,13 @@ +diff -ruN a/src/requests.cpp b/src/requests.cpp +--- a/src/requests.cpp 2024-03-06 19:19:25.370737482 +0100 ++++ b/src/requests.cpp 2024-03-06 19:20:40.600711937 +0100 +@@ -9,6 +9,9 @@ + #include <random> + #include <chrono> + ++// Definition needed for musl ++typedef unsigned long ulong; ++ + using namespace exmdbpp::structures; + using namespace exmdbpp::constants; + diff --git a/testing/libexmdbpp/APKBUILD b/testing/libexmdbpp/APKBUILD new file mode 100755 index 00000000000..a6fb19b9dcc --- /dev/null +++ b/testing/libexmdbpp/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Noel Kuntze <noel.kuntze@contauro.com> +pkgname=libexmdbpp +pkgver=1.11 +pkgrel=0 +pkgdesc="C++ implementation of the exmdb wire protocol for grommunio" +arch="all" +url="https://grommunio.com/" +license="AGPL-3.0-or-later" +makedepends="cmake ninja python3-dev py3-pybind11-dev py3-pkgconfig" +subpackages="$pkgname-dev py3-pyexmdb:py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/grommunio/libexmdbpp/archive/refs/tags/$pkgver.tar.gz + 0001-musl-ulong.patch + " +#builddir="$srcdir/libexmdbpp-$pkgver/" +options="!check" # No test suite + +build() { + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_SKIP_INSTALL_RPATH=ON + + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +py3() { + pkgdesc="$pkgdesc (python bindings)" + + amove usr/lib/python* +} + +sha512sums=" +757c2f789b892f6cd2e8681d74a215328415e18440da852f41cc5185b2aad350247fab5e65188e516fbb7cd35d05a0663ab59bcf0a18d5a35178f63c29f522e7 libexmdbpp-1.11.tar.gz +69ec05633818ad1ced643b09fda13ada3d36dc95e01fda0984c49ee4825446daceaf2163ea36a6ecf3cf378bd5539890bfafb756dc6a4e45ea84b5b3e3e82c04 0001-musl-ulong.patch +" |