mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/opendht to 2.3.1-1
This commit is contained in:
parent
7c63f4b68c
commit
5814067391
1 changed files with 16 additions and 14 deletions
|
@ -1,43 +1,44 @@
|
|||
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
||||
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
||||
# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - set -DOPENDHT_LTO=OFF
|
||||
# - explicitly link v5/v6 with libatomic
|
||||
# - move cppunit to makedepends from checkdepends
|
||||
|
||||
buildarch=26
|
||||
|
||||
pkgname=opendht
|
||||
epoch=1
|
||||
pkgver=2.1.10
|
||||
pkgrel=3
|
||||
pkgver=2.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="C++14 Distributed Hash Table (DHT) implementation"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/savoirfairelinux/opendht"
|
||||
license=(GPL3)
|
||||
depends=(openssl gnutls nettle argon2 readline fmt http-parser jsoncpp libjsoncpp.so)
|
||||
makedepends=(msgpack-c cmake cython python-setuptools cppunit restinio)
|
||||
depends=(glibc gnutls nettle readline argon2 jsoncpp libjsoncpp.so fmt http-parser openssl)
|
||||
makedepends=(cmake msgpack-c msgpack-cxx asio restinio cython python-setuptools cppunit)
|
||||
optdepends=('python: to use the Python bindings')
|
||||
source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||
opendht-gcc11.patch)
|
||||
sha256sums=('917e5f691199349d6884a68c26645840914c18e72b2e21d97817618ddc55fb81'
|
||||
sha256sums=('9a75db4f119761d6524964b27d3a49aa809a6cb08bde963edc2f338458433c78'
|
||||
'4cd9ee51b3da01f00b0eb4367c48fb3a00df0840d5cf7beafaabcd149c8bd0fc')
|
||||
|
||||
prepare() {
|
||||
patch -d $pkgname-$pkgver -p1 < opendht-gcc11.patch # Fix build with GCC 11
|
||||
# https://github.com/savoirfairelinux/opendht/pull/567
|
||||
patch -d ${pkgname}-${pkgver} -p1 < opendht-gcc11.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> ${pkgname}-${pkgver}/CMakeLists.txt
|
||||
cmake -B build -S ${pkgname}-${pkgver} \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DOPENDHT_TESTS=ON \
|
||||
-DOPENDHT_DOCUMENTATION=OFF \
|
||||
-DOPENDHT_TESTS=ON \
|
||||
-DOPENDHT_STATIC=OFF \
|
||||
-DOPENDHT_SYSTEMD=ON \
|
||||
-DOPENDHT_SYSTEMD_UNIT_FILE_LOCATION=/usr/lib/systemd/system/ \
|
||||
-DOPENDHT_LTO=OFF \
|
||||
-DOPENDHT_TOOLS=ON \
|
||||
-DOPENDHT_INDEX=ON \
|
||||
-DOPENDHT_PYTHON=ON \
|
||||
-DOPENDHT_HTTP=ON \
|
||||
|
@ -47,9 +48,10 @@ build() {
|
|||
make -C build
|
||||
}
|
||||
|
||||
#check() {
|
||||
# make -C build test
|
||||
#}
|
||||
check() {
|
||||
# https://github.com/savoirfairelinux/opendht/issues/568
|
||||
make -C build test || echo "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C build DESTDIR="${pkgdir}" install
|
||||
|
|
Loading…
Reference in a new issue