miniserve: update to 0.22.0, add manpage, completions
This commit is contained in:
parent
cf7d32ecc8
commit
8ddea3003e
|
@ -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 <gottox@voidlinux.org>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue