diff options
author | Gavin Henry <ghenry@sentrypeer.org> | 2022-03-18 23:04:22 +0000 |
---|---|---|
committer | dispatch <dispatch@listserv.local> | 2022-03-18 23:12:15 +0000 |
commit | 040eb76ddcc44554cff59d2e05e7751b2ef2d5e3 (patch) | |
tree | 153b9bc414d0f37a2dc578f77292f72cc385fbfc | |
parent | c418b99604c926dfe2cdd61fae4aa0ce53ba383e (diff) | |
download | aports-patches/3976.tar.gz aports-patches/3976.tar.bz2 aports-patches/3976.tar.xz |
testing/opendht: new aportpatches/3976
https://github.com/savoirfairelinux/opendht
C++14 Distributed Hash Table implementation
testing/
-rw-r--r-- | testing/opendht/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/opendht/APKBUILD b/testing/opendht/APKBUILD new file mode 100644 index 0000000000..f7cc39572c --- /dev/null +++ b/testing/opendht/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Gavin Henry <ghenry@sentrypeer.org> +# Maintainer: Gavin Henry <ghenry@sentrypeer.org> +pkgname=opendht +pkgver=2.3.5 +pkgrel=0 +pkgdesc="C++14 Distributed Hash Table implementation" +url="https://github.com/savoirfairelinux/opendht" +arch="all" +license="GPL-3.0-or-later" +makedepends="cmake pkgconfig doxygen argon2-dev asio-dev gnutls-dev msgpack-c-dev nettle-dev readline-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/opendht/archive/refs/tags/$pkgver.tar.gz" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DOPENDHT_C=ON \ + -DOPENDHT_TOOLS=ON \ + $CMAKE_CROSSOPTS . + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +cef5a56b93073bcb5ff46caf1ccfdb88ceafbebb58df7c9d45d6e75b3d380d3e5fe8d598566f2a54751b727ec77f1a9272d139422ff1a97f8589f0dfd342d39b opendht-2.3.5.tar.gz +" |