Skip to content

Commit

Permalink
vhs: update to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tranzystorekk committed Oct 31, 2022
1 parent 14a84fa commit af50c82
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions srcpkgs/vhs/template
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,11 +12,28 @@ maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
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}
Expand Down

0 comments on commit af50c82

Please sign in to comment.