void-packages/srcpkgs/raft/template

34 lines
868 B
Bash

# Template file for 'raft'
pkgname=raft
version=0.19.1
revision=1
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://raft.readthedocs.io"
distfiles="https://github.com/cowsql/raft/archive/v${version}.tar.gz"
checksum=fb75ec93c4f8c161f73e08a4d0273f36817a20c91b89035abe793ca9b3dd6fba
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"
}
}