From f666dee52edda503f6e95b6bb22bb33a3c01bc8f Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Fri, 28 Oct 2022 17:19:59 +0200 Subject: [PATCH] vhs: update to 0.2.0 --- srcpkgs/vhs/template | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/srcpkgs/vhs/template b/srcpkgs/vhs/template index d05a04fa5e05..50e0e17b65f3 100644 --- a/srcpkgs/vhs/template +++ b/srcpkgs/vhs/template @@ -1,6 +1,6 @@ # Template file for 'vhs' pkgname=vhs -version=0.1.0 +version=0.2.0 revision=1 build_style=go build_helper=qemu @@ -12,17 +12,27 @@ maintainer="Marcin Puc " license="MIT" homepage="https://github.com/charmbracelet/vhs" distfiles="https://github.com/charmbracelet/vhs/archive/refs/tags/v${version}.tar.gz" -checksum=7a1d36482dec0ab158bef852fa0f9e90ce6b7011bc9dd56244fd84692e17433b +checksum=3be752dafa1d5637cd3feb5ea72f9396d2ffb7d559a10eff26f430d4a7540689 + +# on platforms where chromium is not available, fall back to the go-rod auto downloader +if [ "${CROSS_BUILD}" ]; then + case "${XBPS_TARGET_MACHINE}" in + aarch64*) depends+=" chromium" ;; + *) ;; + esac +else + depends+=" chromium" +fi post_install() { vlicense LICENSE - VHS="${DESTDIR}/usr/bin/vhs" + local vhs="${DESTDIR}/usr/bin/vhs" for shell in bash fish zsh; do - vtargetrun ${VHS} completion ${shell} > vhs.${shell} + vtargetrun ${vhs} completion ${shell} > vhs.${shell} vcompletion vhs.${shell} ${shell} done - vtargetrun ${VHS} manual > vhs.1 + vtargetrun ${vhs} manual > vhs.1 vman vhs.1 }