From dba2e741327c56d0fa0cb2403dab5e42ce8f4b4e Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Fri, 28 Oct 2022 17:19:59 +0200 Subject: [PATCH] vhs: install example tape files --- srcpkgs/vhs/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/vhs/template b/srcpkgs/vhs/template index d05a04fa5e05..8a41c4491a4a 100644 --- a/srcpkgs/vhs/template +++ b/srcpkgs/vhs/template @@ -1,7 +1,7 @@ # Template file for 'vhs' pkgname=vhs version=0.1.0 -revision=1 +revision=2 build_style=go build_helper=qemu go_import_path="github.com/charmbracelet/vhs" @@ -17,6 +17,13 @@ checksum=7a1d36482dec0ab158bef852fa0f9e90ce6b7011bc9dd56244fd84692e17433b 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}