Date: Thursday, December 28, 2017 @ 20:21:10 Author: eworm Revision: 276611
archrelease: copy trunk to community-staging-x86_64 Added: opendht/repos/community-staging-x86_64/ opendht/repos/community-staging-x86_64/PKGBUILD (from rev 276610, opendht/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: opendht/repos/community-staging-x86_64/PKGBUILD (from rev 276610, opendht/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-12-28 20:21:10 UTC (rev 276611) @@ -0,0 +1,42 @@ +# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org> +pkgname=opendht +pkgver=1.5.0 +pkgrel=2 +epoch=1 +pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)" +arch=('x86_64') +depends=('gnutls' 'nettle' 'readline' 'argon2') +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=('a5848d94c46d8ef502860320879e177ffe480e9caa1d03422971a6e5a5604d33') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + msg2 'Building...' + mkdir -p build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DOPENDHT_PYTHON=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: