From dceea8c85c84cf3120e7eef9402f0527a5c16b64 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Mon, 26 Sep 2022 22:44:51 +0200 Subject: [PATCH] miniserve: update to 0.22.0, add manpage, completions --- srcpkgs/miniserve/template | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/srcpkgs/miniserve/template b/srcpkgs/miniserve/template index d1ddc81a1c80..b52353094f31 100644 --- a/srcpkgs/miniserve/template +++ b/srcpkgs/miniserve/template @@ -1,16 +1,17 @@ # Template file for 'miniserve' pkgname=miniserve -version=0.20.0 +version=0.22.0 revision=1 build_style=cargo +build_helper=qemu checkdepends="curl" short_desc="CLI tool to serve files and dirs over HTTP" maintainer="Enno Boland " license="MIT" homepage="https://github.com/svenstaro/miniserve" changelog="https://raw.githubusercontent.com/svenstaro/miniserve/master/CHANGELOG.md" -distfiles="https://github.com/svenstaro/miniserve/archive/v${version}.tar.gz" -checksum=77aca0e3660564cc2b9a7f318c5d9065d471f3c5ab0a7d1b6850a5cb6e21904f +distfiles="https://github.com/svenstaro/miniserve/archive/refs/tags/v${version}.tar.gz" +checksum=325f6cde391c468000b1bdcc8455ec2c6950b3c930029187671c536507b185ba make_check=ci-skip # port binding succeeds locally but fails in CI case "$XBPS_TARGET_MACHINE" in @@ -19,5 +20,14 @@ case "$XBPS_TARGET_MACHINE" in esac post_install() { + MINISERVE="${DESTDIR}/usr/bin/miniserve" + for shell in bash fish zsh; do + vtargetrun ${MINISERVE} --print-completions ${shell} > miniserve.${shell} + vcompletion miniserve.${shell} ${shell} + done + + vtargetrun ${MINISERVE} --print-manpage > miniserve.1 + vman miniserve.1 + vlicense LICENSE }