void-packages/srcpkgs/opendht/template

32 lines
972 B
Bash

# Template file for 'opendht'
pkgname=opendht
version=2.4.12
revision=1
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 <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=5144bc4456d396b527b59065064bbc31fbe0d2af5fd052506219a66895791e64
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"
}
}