From c679d28c989ae35b77b205d92b168175359c9b06 Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Tue, 5 Dec 2023 03:56:45 +0300 Subject: [PATCH] New package: dufs-0.41.0 --- srcpkgs/dufs/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/dufs/template diff --git a/srcpkgs/dufs/template b/srcpkgs/dufs/template new file mode 100644 index 00000000000000..3967e029d274af --- /dev/null +++ b/srcpkgs/dufs/template @@ -0,0 +1,25 @@ +# Template file for 'dufs' +pkgname=dufs +version=0.41.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 " +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=8c0549678a4954a498e0f1f99fe4beec2acd3cb0084fc611cf20431313b05033 + +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 +}