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

Baptiste Jonglez zorun at archlinux.org
Fri Feb 2 07:49:09 UTC 2018


    Date: Friday, February 2, 2018 @ 07:49:08
  Author: zorun
Revision: 288541

archrelease: copy trunk to community-testing-x86_64

Added:
  opendht/repos/community-testing-x86_64/
  opendht/repos/community-testing-x86_64/PKGBUILD
    (from rev 288540, opendht/trunk/PKGBUILD)

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

Copied: opendht/repos/community-testing-x86_64/PKGBUILD (from rev 288540, opendht/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-02-02 07:49:08 UTC (rev 288541)
@@ -0,0 +1,49 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=opendht
+pkgver=1.6.0rc1
+pkgrel=1
+epoch=1
+pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
+arch=('x86_64')
+depends=('gnutls' 'nettle' 'readline' 'argon2' 'jsoncpp' 'restbed')
+makedepends=('msgpack-c' 'cmake' 'cython')
+optdepends=('python: to use the Python bindings')
+url="https://github.com/savoirfairelinux/opendht"
+license=('GPL3')
+source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('9c0d46399182e6d701854efa95fd225a541b5ed743a1f2c3c0f22125e4bd65e2')
+sha512sums=('7db850afe9eebd580c7be97f591d8d3f36828387a9aedbd3c5ca48212251f9e650131dd6d81cd487ae3e58212f106abf6ea2a16e710297068778ffd25c8ebbd9')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  msg2 'Building...'
+  mkdir -p build
+  cd build
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DOPENDHT_STATIC=OFF \
+    -DOPENDHT_SYSTEMD=ON \
+    -DOPENDHT_LTO=ON \
+    -DOPENDHT_PYTHON=ON \
+    -DOPENDHT_PROXY_SERVER=ON \
+    -DOPENDHT_PROXY_CLIENT=ON \
+    -DOPENDHT_PUSH_NOTIFICATIONS=ON \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  msg2 'Installing...'
+  cd build
+  make DESTDIR="$pkgdir" install
+  cd ..
+
+  msg2 'Installing documentation...'
+  install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list