# Template file for 'fwup'
pkgname=fwup
version=0.7.0
revision=1
build_style=gnu-configure
configure_args="ac_vc_func_open_memstream=yes"
hostmakedepends="automake libtool"
makedepends="libarchive-devel libsodium-devel confuse-devel"
short_desc="Configurable embedded Linux firmware update creator and runner"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="Apache-2.0"
homepage="https://github.com/fhunleth/fwup"
distfiles="https://github.com/fhunleth/fwup/archive/v${version}.tar.gz"
checksum=b318875d42cf2a643da99f03ac91662ec91625d9a84a3a9bb53ac419d1cb0dc3

if [ -z "$CROSS_BUILD" ]; then
	hostmakedepends+=" help2man"
fi

pre_configure() {
	NOCONFIGURE=1 autoreconf -fi
}
