[arch-commits] Commit in opendht/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 19 11:26:40 UTC 2022


    Date: Friday, August 19, 2022 @ 11:26:39
  Author: felixonmars
Revision: 1270010

archrelease: copy trunk to community-staging-x86_64

Added:
  opendht/repos/community-staging-x86_64/
  opendht/repos/community-staging-x86_64/PKGBUILD
    (from rev 1270009, opendht/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 1270009, opendht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-19 11:26:39 UTC (rev 1270010)
@@ -0,0 +1,52 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+
+pkgname=opendht
+epoch=1
+pkgver=2.4.9
+pkgrel=2
+pkgdesc="C++17 Distributed Hash Table (DHT) implementation"
+arch=(x86_64)
+url="https://github.com/savoirfairelinux/opendht"
+license=(GPL3)
+depends=(glibc gnutls nettle readline argon2 jsoncpp libjsoncpp.so fmt http-parser openssl)
+makedepends=(git cmake msgpack-cxx asio restinio cython python-setuptools)
+checkdepends=(cppunit)
+optdepends=('python: to use the Python bindings'
+            'msgpack-cxx: linking against opendht')
+_commit=2c7edb695f4796df77434e2445e3cff9be820c76
+source=(git+${url}#commit=${_commit})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./;s/-/+/'
+}
+
+build() {
+  cmake -B build -S ${pkgname} \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DOPENDHT_DOCUMENTATION=OFF \
+    -DOPENDHT_TESTS=ON \
+    -DOPENDHT_STATIC=OFF \
+    -DOPENDHT_SYSTEMD=ON \
+    -DOPENDHT_SYSTEMD_UNIT_FILE_LOCATION=/usr/lib/systemd/system/ \
+    -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() {
+  # https://github.com/savoirfairelinux/opendht/issues/568
+  make -C build test || echo "Tests failed"
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list