Date: Thursday, April 12, 2018 @ 20:37:12
  Author: zorun
Revision: 316130

archrelease: copy trunk to community-x86_64

Added:
  opendht/repos/community-x86_64/PKGBUILD
    (from rev 316129, opendht/trunk/PKGBUILD)
Deleted:
  opendht/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-12 20:37:01 UTC (rev 316129)
+++ PKGBUILD    2018-04-12 20:37:12 UTC (rev 316130)
@@ -1,49 +0,0 @@
-# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
-pkgname=opendht
-pkgver=1.7.0rc5
-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=('504621eb88dd1a9ab9d179e9cc86959e3484dd1f0d0e486131c833aaa260545d')
-sha512sums=('259b3bd0d9b2fabaf93a875e8f4082d0cc9ce9e35b6726b554e6485688dc825d014fad2bf4464bc55f80941f2f0ae365fbea7f6ee0ecda5e08c9d680bf335bc3')
-
-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:

Copied: opendht/repos/community-x86_64/PKGBUILD (from rev 316129, 
opendht/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-04-12 20:37:12 UTC (rev 316130)
@@ -0,0 +1,58 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=opendht
+pkgver=1.7.0rc6
+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' 'cppunit')
+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=('c1e870022ef3e3a83dd2e1d37c62e365c4b5e5bb8e54da858479d40c9a6d73e8')
+sha512sums=('a69c1879a7d78a60a3b0aca762d7b344619775c657590567904aa4076824ec453fee77fd0ff58c074748a01f937b314bd4041e098bf841a5108cfe7382537d42')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  msg2 'Building...'
+  mkdir -p build
+  cd build
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=None \
+    -DOPENDHT_TESTS=ON \
+    -DOPENDHT_DOCUMENTATION=OFF \
+    -DOPENDHT_STATIC=OFF \
+    -DOPENDHT_SYSTEMD=ON \
+    -DOPENDHT_LTO=ON \
+    -DOPENDHT_TOOLS=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
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd build
+  make test
+}
+
+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:

Reply via email to