diff --git a/srcpkgs/fwup/template b/srcpkgs/fwup/template new file mode 100644 index 0000000000..9c85025cf7 --- /dev/null +++ b/srcpkgs/fwup/template @@ -0,0 +1,21 @@ +# Template file for 'fwup' +pkgname=fwup +version=0.4.2 +revision=1 +build_style=gnu-configure +hostmakedepends="automake" +makedepends="libarchive-devel libsodium-devel confuse-devel" +short_desc="Configurable embedded Linux firmware update creator and runner" +maintainer="Duncaen " +license="Apache-2.0" +homepage="https://github.com/fhunleth/fwup" +distfiles="https://github.com/fhunleth/fwup/archive/v${version}.tar.gz" +checksum=1c444d52dded8f69de127f71346d53ebee16fae7cfde23f6a324336b2b6940bb + +case "$XBPS_TARGET_MACHINE" in + *-musl) configure_args+=" ac_vc_func_open_memstream=yes" ;; +esac + +pre_configure() { + NOCONFIGURE=1 autoreconf -fi +}