-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
39 lines (35 loc) · 1.21 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Template file for 'miniserve'
pkgname=miniserve
version=0.27.1
revision=1
build_style=cargo
build_helper=qemu
# these tests fail to create a tempdir
make_check_args="--
--skip qrcode_hidden_in_tty_when_disabled
--skip qrcode_shown_in_tty_when_enabled"
hostmakedepends="pkg-config"
makedepends="libzstd-devel"
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/refs/tags/v${version}.tar.gz"
checksum=b65580574ca624072b1a94d59ebf201ab664eacacb46a5043ef7b81ebb538f80
make_check=ci-skip # port binding succeeds locally but fails in CI
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|arm*|aarch64*) ;;
*) broken="ftbfs in ring" ;;
esac
post_install() {
local _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
}