2018-02-08 00:34:26 +00:00
|
|
|
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
2019-02-04 14:54:09 +00:00
|
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
2018-02-08 00:34:26 +00:00
|
|
|
|
|
|
|
# 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
|
2019-02-04 14:54:09 +00:00
|
|
|
pkgver=1.8.1
|
2019-03-26 18:44:33 +00:00
|
|
|
pkgrel=2
|
2018-02-08 00:34:26 +00:00
|
|
|
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')
|
2019-02-04 14:54:09 +00:00
|
|
|
source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
|
|
|
sha256sums=('96564cd3c7fee711e7bcd71a83fef0e02721b06c1de921abf73b1872e616f962')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
}
|
2018-02-08 00:34:26 +00:00
|
|
|
|
|
|
|
build() {
|
2019-02-04 14:54:09 +00:00
|
|
|
cd build
|
2018-02-08 00:34:26 +00:00
|
|
|
|
2019-02-04 14:54:09 +00:00
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> ../${pkgname}-${pkgver}/CMakeLists.txt
|
2018-03-31 23:37:54 +00:00
|
|
|
|
2019-02-04 14:54:09 +00:00
|
|
|
cmake ../${pkgname}-${pkgver} \
|
2018-04-13 00:04:18 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-02-04 14:54:09 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2018-04-13 00:04:18 +00:00
|
|
|
-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 \
|
2019-03-26 18:44:33 +00:00
|
|
|
-DOPENDHT_INDEX=ON \
|
2018-02-08 00:34:26 +00:00
|
|
|
-DOPENDHT_PYTHON=ON \
|
|
|
|
-DOPENDHT_PROXY_SERVER=ON \
|
|
|
|
-DOPENDHT_PROXY_CLIENT=ON \
|
2019-02-04 14:54:09 +00:00
|
|
|
-DOPENDHT_PUSH_NOTIFICATIONS=ON
|
2018-02-08 00:34:26 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-04-13 00:04:18 +00:00
|
|
|
check() {
|
|
|
|
cd build
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
2018-02-08 00:34:26 +00:00
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|