mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
|
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - set -DOPENDHT_LTO=OFF
|
||
|
|
||
|
pkgname=opendht
|
||
|
pkgver=1.6.0rc1
|
||
|
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')
|
||
|
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=('9c0d46399182e6d701854efa95fd225a541b5ed743a1f2c3c0f22125e4bd65e2')
|
||
|
sha512sums=('7db850afe9eebd580c7be97f591d8d3f36828387a9aedbd3c5ca48212251f9e650131dd6d81cd487ae3e58212f106abf6ea2a16e710297068778ffd25c8ebbd9')
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||
|
|
||
|
msg2 'Building...'
|
||
|
mkdir -p build
|
||
|
cd build
|
||
|
cmake .. \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DOPENDHT_STATIC=OFF \
|
||
|
-DOPENDHT_SYSTEMD=ON \
|
||
|
-DOPENDHT_LTO=OFF \
|
||
|
-DOPENDHT_PYTHON=ON \
|
||
|
-DOPENDHT_PROXY_SERVER=ON \
|
||
|
-DOPENDHT_PROXY_CLIENT=ON \
|
||
|
-DOPENDHT_PUSH_NOTIFICATIONS=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:
|