32 lines
947 B
Bash
32 lines
947 B
Bash
|
# Template file for 'opendht'
|
||
|
pkgname=opendht
|
||
|
version=2.3.1
|
||
|
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=9a75db4f119761d6524964b27d3a49aa809a6cb08bde963edc2f338458433c78
|
||
|
|
||
|
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"
|
||
|
}
|
||
|
}
|