From be77015b1ab563aab71609454538b0a4eeca7f21 Mon Sep 17 00:00:00 2001 From: Noel Kuntze Date: Sun, 10 Mar 2024 10:56:08 +0100 Subject: testing/libexmdpp: new aport C++ implementation of the exmdb wire protocol for grommunio --- testing/libexmdbpp/0001-musl-ulong.patch | 13 +++++++++++ testing/libexmdbpp/APKBUILD | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100755 testing/libexmdbpp/0001-musl-ulong.patch create mode 100755 testing/libexmdbpp/APKBUILD 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 + #include + ++// 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 +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 +" -- cgit v1.2.3