mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
53 lines
1.5 KiB
Bash
53 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.0rc2
|
|
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=('1e561e92ae7aacc2591b36caed89ca6701b30a43af6b046090f48c765b3ace06')
|
|
sha512sums=('c12763350d63a63122fcfbe52d3d17644279f24a8ae3154db0e4924f050c4c32c027a238ea79940e647ab538f8aaa87f2bed139f6404551c27ca637e25ebdd86')
|
|
|
|
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:
|