Date: Sunday, July 8, 2018 @ 14:10:52 Author: foutrelis Revision: 354936
archrelease: copy trunk to community-staging-x86_64 Added: opendht/repos/community-staging-x86_64/ opendht/repos/community-staging-x86_64/PKGBUILD (from rev 354935, opendht/trunk/PKGBUILD) ----------+ PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 354935, opendht/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-08 14:10:52 UTC (rev 354936) @@ -0,0 +1,58 @@ +# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org> +pkgname=opendht +pkgver=1.7.3rc4 +pkgrel=2 +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=('5fced76228ca2603cd9f80a5537fc568cc9f19d139107a03dc1f0c40e9489476') +sha512sums=('894499d4a49b664fb5372e36453fcd03f0aa5600be3e58eb03304422725de8caddbf03251d7c02d0a98c2bb82d7c31029d09fb244f24afe8cca03994cf9fd959') + +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: