2018-02-08 00:34:26 +00:00
|
|
|
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set -DOPENDHT_LTO=OFF
|
2018-03-31 23:37:54 +00:00
|
|
|
# - explicitly link v5/v6 with libatomic
|
2018-02-08 00:34:26 +00:00
|
|
|
|
|
|
|
pkgname=opendht
|
2018-04-15 15:28:13 +00:00
|
|
|
pkgver=1.7.0
|
2018-02-08 00:34:26 +00:00
|
|
|
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')
|
2018-04-13 00:04:18 +00:00
|
|
|
makedepends=('msgpack-c' 'cmake' 'cython' 'systemd' 'cppunit')
|
2018-02-08 00:34:26 +00:00
|
|
|
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")
|
2018-04-15 15:28:13 +00:00
|
|
|
sha256sums=('bfac984414607bd2b15ee72dc78f42de3ccdcfa4e7beb69d606554cd2e5fe7f1')
|
|
|
|
sha512sums=('3c65d1a1d0b430e6d72442c62a406091552977ad2699fcd24e3758db1ba218762efbe65c222041104252152b7f7f73d54243c0e79701c1875ce087aab5f12f5f')
|
2018-02-08 00:34:26 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
2018-03-31 23:37:54 +00:00
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> CMakeLists.txt
|
|
|
|
|
2018-02-08 00:34:26 +00:00
|
|
|
msg2 'Building...'
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
2018-04-13 00:04:18 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
|
|
-DOPENDHT_TESTS=ON \
|
|
|
|
-DOPENDHT_DOCUMENTATION=OFF \
|
2018-02-08 00:34:26 +00:00
|
|
|
-DOPENDHT_STATIC=OFF \
|
|
|
|
-DOPENDHT_SYSTEMD=ON \
|
|
|
|
-DOPENDHT_LTO=OFF \
|
2018-04-13 00:04:18 +00:00
|
|
|
-DOPENDHT_TOOLS=ON \
|
2018-02-08 00:34:26 +00:00
|
|
|
-DOPENDHT_PYTHON=ON \
|
|
|
|
-DOPENDHT_PROXY_SERVER=ON \
|
|
|
|
-DOPENDHT_PROXY_CLIENT=ON \
|
|
|
|
-DOPENDHT_PUSH_NOTIFICATIONS=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-04-13 00:04:18 +00:00
|
|
|
check() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
cd build
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2018-02-08 00:34:26 +00:00
|
|
|
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:
|