# Template file for 'dufs'
pkgname=dufs
version=0.46.0
revision=1
build_style=cargo
build_helper=qemu
# test fails in ci
make_check_args="-- --skip bind_ipv4_ipv6"
hostmakedepends="pkg-config"
makedepends="bzip2-devel liblzma-devel"
short_desc="File server that supports static serving, uploading, searching, etc"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/sigoden/dufs"
changelog="https://raw.githubusercontent.com/sigoden/dufs/main/CHANGELOG.md"
distfiles="https://github.com/sigoden/dufs/archive/v${version}.tar.gz"
checksum=e5bb926107736802bfd3be6937482dd3daf396a5c481fed714de542055286ebc

post_install() {
	vlicense LICENSE-MIT
	for shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/dufs --completions ${shell} > dufs.${shell}
		vcompletion dufs.${shell} ${shell}
	done
}
