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

Baptiste Jonglez zorun at archlinux.org
Sat Sep 14 08:24:55 UTC 2019


    Date: Saturday, September 14, 2019 @ 08:24:55
  Author: zorun
Revision: 510475

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 510474, opendht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-14 08:24:55 UTC (rev 510475)
@@ -0,0 +1,50 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=opendht
+epoch=1
+pkgver=1.10.1
+pkgrel=2
+pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
+arch=(x86_64)
+url="https://github.com/savoirfairelinux/opendht"
+license=(GPL3)
+depends=('gnutls' 'nettle' 'readline' 'argon2' 'restbed' 'jsoncpp' 'libjsoncpp.so')
+makedepends=(msgpack-c cmake cython systemd cppunit)
+optdepends=('python: to use the Python bindings')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=(d0ab4aa376ecd4ac57af78a1491cd0f466021790ebea0e00032a503d61127f323cb37f04d94f2a35797dc52051407708f49ed99be558003acc102ff017dbdf29)
+
+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_LTO=ON \
+    -DOPENDHT_TOOLS=ON \
+    -DOPENDHT_INDEX=ON \
+    -DOPENDHT_PYTHON=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