void-packages/srcpkgs/raft/template

36 lines
946 B
Bash

# Template file for 'raft'
pkgname=raft
version=0.16.0
revision=2
build_style=gnu-configure
configure_args="--enable-example=no"
hostmakedepends="pkg-config autoconf automake libtool"
makedepends="libuv-devel liblz4-devel"
short_desc="C implementation of the Raft consensus protocol"
maintainer="Cameron Nemo <cam@nohom.org>"
license="custom:LGPL-3.0-only-linking-exception"
homepage="https://github.com/canonical/raft"
distfiles="https://github.com/canonical/raft/archive/v${version}.tar.gz"
checksum=ab5480c051bfbf482074f62c9c306d08ca68b8f0ad0c2db2ebf0488cfe692336
# test/unit/uv and test/integration/uv fail on CI
make_check=ci-skip
pre_configure() {
autoreconf -i
}
post_install() {
vlicense LICENSE
}
raft-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}