From 042fa07fb62018a6ae77865eaac09dda83a656c3 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.1.1 --- srcpkgs/vhs/template | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/srcpkgs/vhs/template b/srcpkgs/vhs/template index d05a04fa5e05..49a27e4eeb09 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.1.1 revision=1 build_style=go build_helper=qemu @@ -12,11 +12,28 @@ 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=d5d6dddd8f9fd2beb6d1ea232efaa1c9dbfa4e53011d2aebdbe830d952665776 + +# 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 + # install tape examples + for dir in commands fixtures settings; do + vmkdir usr/share/examples/vhs/${dir} + vcopy "examples/${dir}/*.tape" usr/share/examples/vhs/${dir} + done + vcopy "examples/*.tape" usr/share/examples/vhs + VHS="${DESTDIR}/usr/bin/vhs" for shell in bash fish zsh; do vtargetrun ${VHS} completion ${shell} > vhs.${shell}