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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:41:06 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:41:06
  Author: felixonmars
Revision: 752757

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 752756, opendht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:41:06 UTC (rev 752757)
@@ -0,0 +1,52 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=opendht
+epoch=1
+pkgver=2.1.6
+pkgrel=3
+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 cppunit restinio)
+optdepends=('python: to use the Python bindings')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('53f362f75a5dda2e88eb145671d01b2998cc5f55d9e1e37fa28b18a324f1159c')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../${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
+}
+
+#check() {
+#  cd build
+#  make test
+#}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list