void-packages/srcpkgs/opendht/template

34 lines
1.0 KiB
Bash

# Template file for 'opendht'
pkgname=opendht
version=2.6.0.4
revision=2
build_style=cmake
configure_args="-DOPENDHT_SYSTEMD=OFF -DOPENDHT_TOOLS=OFF
-DOPENDHT_TESTS_NETWORK=OFF"
hostmakedepends="pkg-config"
makedepends="gnutls-devel msgpack-cxx readline-devel libargon2-devel asio fmt-devel"
checkdepends="libcppunit-devel"
short_desc="Distributed Hash Table implementation"
maintainer="Piraty <mail@piraty.dev>"
license="GPL-3.0-or-later"
homepage="https://github.com/savoirfairelinux/opendht"
distfiles="https://github.com/savoirfairelinux/opendht/archive/refs/tags/v${version}.tar.gz"
checksum=7afbe6bba1df0ee8a35f6c29a9d250de03555c39aa6c94152f1e34e9abcb6488
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=ON"
else
configure_args+=" -DBUILD_TESTING=OFF"
fi
opendht-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} gnutls-devel nettle-devel"
pkg_install() {
vmove usr/include
vmove "usr/lib/cmake"
vmove "usr/lib/pkgconfig"
vmove "usr/lib/*.so"
}
}