# Template file for 'rebar3'
pkgname=rebar3
version=3.25.1
revision=2
hostmakedepends=erlang
depends="erlang>=26"
short_desc="Erlang build tool to compile, test, and release applications"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://www.rebar3.org/"
distfiles="https://github.com/erlang/rebar3/archive/refs/tags/${version}.tar.gz"
checksum=458d6ceaf7822dd7682288354ab3ba74e14b3ed11cc5b551af9eb312de894106

do_build() {
	./bootstrap
}

do_check() {
	./rebar3 ct
}

do_install() {
	vbin rebar3
	vsconf rebar.config.sample rebar.config
	vman manpages/rebar3.1
}
