[PATCH] testing/opendht: python bindings
Export this patch
---
testing/opendht/APKBUILD | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/testing/opendht/APKBUILD b/testing/opendht/APKBUILD
index d31f68762e..c2ba13068e 100644
--- a/testing/opendht/APKBUILD
+++ b/testing/opendht/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Gavin Henry <ghenry@sentrypeer.org>
pkgname=opendht
pkgver=2.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="C++14 Distributed Hash Table implementation"
url="https://github.com/savoirfairelinux/opendht"
arch="all"
@@ -11,13 +11,17 @@ makedepends="
argon2-dev
asio-dev
cmake
+ cython
gnutls-dev
+ jsoncpp-dev
msgpack-cxx-dev
nettle-dev
+ py3-setuptools
+ python3-dev
readline-dev
samurai
"
-subpackages="$pkgname-static $pkgname-libs $pkgname-dev $pkgname-doc"
+subpackages="$pkgname-static py3-$pkgname:_py3 $pkgname-libs $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/opendht/archive/refs/tags/$pkgver.tar.gz"
build() {
@@ -31,6 +35,7 @@ build() {
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DOPENDHT_C=ON \
-DOPENDHT_TOOLS=ON \
+ -DOPENDHT_PYTHON=ON \
-G Ninja \
$CMAKE_CROSSOPTS .
cmake --build build
@@ -50,6 +55,12 @@ libs() {
amove usr/lib/libopendht-c.so
}
+_py3() {
+ pkgdesc="$pkgdesc (python bindings)"
+ amove usr/lib/python*
+ amove usr/bin/dhtcluster
+}
+
sha512sums="
e7db51f47c5b5254d97c39d67f9b7329c70680bfe5d9f189627332a5fccb3bdf12e420d507dfd5e0fd023109ed5f32d47ccb9c52d0d4bb69cf6178e7e665205a opendht-2.4.0.tar.gz
"
--
2.35.1
Thank you!
--
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32449#note_224914