blob: ffbf8954d20e4002a5844a1073703a0bea3c7014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=opendht-git
pkgver=2.3.3.r2.gf590980c
pkgrel=2
epoch=1
pkgdesc="C++14 implementation of the Kademlia DHT (Distributed Hash Table)"
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/savoirfairelinux/opendht"
license=(GPL3)
depends=(gnutls nettle readline asio jsoncpp argon2)
makedepends=(git msgpack-cxx cmake cython python-setuptools )
optdepends=('python: to use the Python bindings')
provides=(opendht)
conflicts=(opendht)
source=("git+https://github.com/savoirfairelinux/opendht")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${pkgname%-*}"
install -d build
}
build() {
cd "${srcdir}/${pkgname%-git}/build"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DOPENDHT_PYTHON=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
cd "${srcdir}/${pkgname%-git}/build"
make DESTDIR="${pkgdir}" install
install -D -m644 ../README.md "${pkgdir}/usr/share/doc/opendht/README.md"
}
|