mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - set -DOPENDHT_LTO=OFF
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
pkgname=opendht
|
|
pkgver=1.8.1
|
|
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=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
|
sha256sums=('96564cd3c7fee711e7bcd71a83fef0e02721b06c1de921abf73b1872e616f962')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> ../${pkgname}-${pkgver}/CMakeLists.txt
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DOPENDHT_TESTS=ON \
|
|
-DOPENDHT_DOCUMENTATION=OFF \
|
|
-DOPENDHT_STATIC=OFF \
|
|
-DOPENDHT_SYSTEMD=ON \
|
|
-DOPENDHT_LTO=OFF \
|
|
-DOPENDHT_TOOLS=ON \
|
|
-DOPENDHT_PYTHON=ON \
|
|
-DOPENDHT_PROXY_SERVER=ON \
|
|
-DOPENDHT_PROXY_CLIENT=ON \
|
|
-DOPENDHT_PUSH_NOTIFICATIONS=ON
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|