void-packages/srcpkgs/opendht/template

32 lines
947 B
Bash

# Template file for 'opendht'
pkgname=opendht
version=2.4.4
revision=1
build_style=cmake
configure_args="-DOPENDHT_SYSTEMD=OFF -DOPENDHT_TOOLS=OFF
-DOPENDHT_TESTS_NETWORK=OFF"
hostmakedepends="pkg-config"
makedepends="gnutls-devel msgpack-devel 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/${version}.tar.gz"
checksum=a4b452423f9a55f3c53ceaeeb43ec50f2747fdc89a546caa74cd79b93b6ede08
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
opendht-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/cmake"
vmove "usr/lib/pkgconfig"
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}