void-packages/srcpkgs/opendht/template

32 lines
973 B
Bash

# Template file for 'opendht'
pkgname=opendht
version=2.4.10
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"
short_desc="Distributed Hash Table implementation"
maintainer="Piraty <piraty1@inbox.ru>"
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=8077958fb7006612b9b9758095461d8a35316b4224184f10cef785f0ec7031fe
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
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/*.a"
vmove "usr/lib/*.so"
}
}