void-packages/srcpkgs/fwup/template
2018-10-06 16:07:43 +02:00

29 lines
927 B
Bash

# Template file for 'fwup'
pkgname=fwup
version=1.2.6
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libarchive-devel libsodium-devel confuse-devel"
checkdepends="mtools unzip zip dosfstools"
short_desc="Configurable embedded Linux firmware update creator and runner"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="Apache-2.0"
#changelog="https://github.com/fhunleth/fwup/raw/master/CHANGELOG.md"
homepage="https://github.com/fhunleth/fwup"
distfiles="https://github.com/fhunleth/fwup/archive/v${version}.tar.gz"
checksum=5bdcb8a5424b211fd35ddd4d8fdd6f74e8221cf432807dc8018f81ce54939b52
if [ -z "$CROSS_BUILD" ]; then
hostmakedepends+=" help2man"
fi
pre_configure() {
autoreconf -fi
}
pre_check() {
# mtools.conf requires manual configuration for usage, but not for out tests
# so we just remove the unrecognized keyword
sed -i '/SAMPLE FILE/d' /etc/mtools.conf
}