Received: from avasout-ptp-003.plus.net (avasout-ptp-003.plus.net [84.93.230.244]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 266EB78117E for ; Fri, 18 Mar 2022 23:12:10 +0000 (UTC) Received: from alpine.my.domain ([212.159.59.85]) by smtp with ESMTP id VLdwnXMVhCXwtVLdxn3jn7; Fri, 18 Mar 2022 23:04:35 +0000 X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.4 cv=CLZJ4TnD c=1 sm=1 tr=0 ts=62351003 a=WCS0tyHtJqBilYZXUjgseQ==:117 a=WCS0tyHtJqBilYZXUjgseQ==:17 a=NEAV23lmAAAA:8 a=ZpkkFur0AAAA:8 a=FYpc3PfN-BRFoV2B4kQA:9 a=5FtNF28YhzYDeMx1bpRV:22 From: Gavin Henry To: alpine-aports@lists.alpinelinux.org Cc: Gavin Henry Subject: [PATCH] testing/opendht: new aport Date: Fri, 18 Mar 2022 23:04:22 +0000 Message-Id: <20220318230422.12085-1-ghenry@sentrypeer.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfJzIrIRljPDWUfM/miACjYIsoIMbxIVu230Ad6z2AzEJXxee2AdqnKqidI5WKbMFA5aatqievmqw5ieuq6dlXoMURT/09GMhupR0D0HqJR0flbErWEVa 8/dcBOjC2+1ylTVmck+K0lOLqa6IAu2ACCN2+19VLIGc1O75qkcHa/UouDN6rHWbsc3to7kOv+WWkKaOHDjqJpZp1fWcqe6Bim8= https://github.com/savoirfairelinux/opendht C++14 Distributed Hash Table implementation testing/ --- testing/opendht/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/opendht/APKBUILD 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 +# Maintainer: Gavin Henry +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 +" -- 2.34.1