mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
miniserve: update to 0.22.0, add manpage, completions
This commit is contained in:
parent
cf7d32ecc8
commit
8ddea3003e
1 changed files with 13 additions and 3 deletions
|
@ -1,16 +1,17 @@
|
||||||
# Template file for 'miniserve'
|
# Template file for 'miniserve'
|
||||||
pkgname=miniserve
|
pkgname=miniserve
|
||||||
version=0.20.0
|
version=0.22.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
|
build_helper=qemu
|
||||||
checkdepends="curl"
|
checkdepends="curl"
|
||||||
short_desc="CLI tool to serve files and dirs over HTTP"
|
short_desc="CLI tool to serve files and dirs over HTTP"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/svenstaro/miniserve"
|
homepage="https://github.com/svenstaro/miniserve"
|
||||||
changelog="https://raw.githubusercontent.com/svenstaro/miniserve/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/svenstaro/miniserve/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/svenstaro/miniserve/archive/v${version}.tar.gz"
|
distfiles="https://github.com/svenstaro/miniserve/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=77aca0e3660564cc2b9a7f318c5d9065d471f3c5ab0a7d1b6850a5cb6e21904f
|
checksum=325f6cde391c468000b1bdcc8455ec2c6950b3c930029187671c536507b185ba
|
||||||
make_check=ci-skip # port binding succeeds locally but fails in CI
|
make_check=ci-skip # port binding succeeds locally but fails in CI
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -19,5 +20,14 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
post_install() {
|
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
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue