void-packages/srcpkgs/raft/template
2020-01-30 08:19:28 +01:00

33 lines
877 B
Bash

# Template file for 'raft'
pkgname=raft
version=0.9.16
revision=1
build_style=gnu-configure
configure_args="--enable-example=no"
hostmakedepends="pkg-config autoconf automake libtool"
makedepends="libuv-devel"
short_desc="C implementation of the Raft consensus protocol"
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
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=b4c4ac15dd74a4c2bbe86149cb5fc1b937979a62e97439615175e3e218fac512
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"
}
}