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

Baptiste Jonglez zorun at archlinux.org
Sat Mar 31 21:11:48 UTC 2018


    Date: Saturday, March 31, 2018 @ 21:11:47
  Author: zorun
Revision: 313639

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 313638, opendht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-03-31 21:11:47 UTC (rev 313639)
@@ -0,0 +1,49 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=opendht
+pkgver=1.7.0rc4
+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' 'systemd')
+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=('17dbfcd16a699047bdd03586f4329f408c56c7bede42d28e25344c777fa0058b')
+sha512sums=('38cd7923e4530ce86d62cba452ff9d09c4406a2b1e4559bc309b62ba12c1810bdf8029a08fd6b347634b03cccd9ae4bf776dca72c5562b0a447ce57da20907ee')
+
+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