[arch-commits] Commit in opendht/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Fri Jul 9 18:26:43 UTC 2021
Date: Friday, July 9, 2021 @ 18:26:43
Author: arojas
Revision: 976253
archrelease: copy trunk to community-staging-x86_64
Added:
opendht/repos/community-staging-x86_64/
opendht/repos/community-staging-x86_64/PKGBUILD
(from rev 976252, opendht/trunk/PKGBUILD)
opendht/repos/community-staging-x86_64/opendht-gcc11.patch
(from rev 976252, opendht/trunk/opendht-gcc11.patch)
---------------------+
PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
opendht-gcc11.patch | 12 +++++++++++
2 files changed, 63 insertions(+)
Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 976252, opendht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-07-09 18:26:43 UTC (rev 976253)
@@ -0,0 +1,51 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=opendht
+epoch=1
+pkgver=2.1.10
+pkgrel=2
+pkgdesc="C++14 Distributed Hash Table (DHT) implementation"
+arch=(x86_64)
+url="https://github.com/savoirfairelinux/opendht"
+license=(GPL3)
+depends=(openssl gnutls nettle argon2 readline fmt http-parser jsoncpp libjsoncpp.so)
+makedepends=(msgpack-c cmake cython python-setuptools cppunit restinio)
+optdepends=('python: to use the Python bindings')
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ opendht-gcc11.patch)
+sha256sums=('917e5f691199349d6884a68c26645840914c18e72b2e21d97817618ddc55fb81'
+ '4cd9ee51b3da01f00b0eb4367c48fb3a00df0840d5cf7beafaabcd149c8bd0fc')
+
+prepare() {
+ patch -d $pkgname-$pkgver -p1 < opendht-gcc11.patch # Fix build with GCC 11
+}
+
+build() {
+ cmake -B build -S ${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DOPENDHT_TESTS=ON \
+ -DOPENDHT_DOCUMENTATION=OFF \
+ -DOPENDHT_STATIC=OFF \
+ -DOPENDHT_SYSTEMD=ON \
+ -DOPENDHT_SYSTEMD_UNIT_FILE_LOCATION=/usr/lib/systemd/system/ \
+ -DOPENDHT_LTO=ON \
+ -DOPENDHT_TOOLS=ON \
+ -DOPENDHT_INDEX=ON \
+ -DOPENDHT_PYTHON=ON \
+ -DOPENDHT_HTTP=ON \
+ -DOPENDHT_PROXY_SERVER=ON \
+ -DOPENDHT_PROXY_CLIENT=ON \
+ -DOPENDHT_PUSH_NOTIFICATIONS=ON
+ make -C build
+}
+
+#check() {
+# make -C build test
+#}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+}
Copied: opendht/repos/community-staging-x86_64/opendht-gcc11.patch (from rev 976252, opendht/trunk/opendht-gcc11.patch)
===================================================================
--- community-staging-x86_64/opendht-gcc11.patch (rev 0)
+++ community-staging-x86_64/opendht-gcc11.patch 2021-07-09 18:26:43 UTC (rev 976253)
@@ -0,0 +1,12 @@
+diff --git a/tests/threadpooltester.cpp b/tests/threadpooltester.cpp
+index be948f9..4a5199f 100644
+--- a/tests/threadpooltester.cpp
++++ b/tests/threadpooltester.cpp
+@@ -21,6 +21,7 @@
+
+ #include "opendht/thread_pool.h"
+ #include <atomic>
++#include <thread>
+
+ namespace test {
+ CPPUNIT_TEST_SUITE_REGISTRATION(ThreadPoolTester);
More information about the arch-commits
mailing list