diff --git a/srcpkgs/vhs/template b/srcpkgs/vhs/template new file mode 100644 index 00000000000..d05a04fa5e0 --- /dev/null +++ b/srcpkgs/vhs/template @@ -0,0 +1,28 @@ +# Template file for 'vhs' +pkgname=vhs +version=0.1.0 +revision=1 +build_style=go +build_helper=qemu +go_import_path="github.com/charmbracelet/vhs" +go_ldflags="-X main.Version=v${version}" +depends="ffmpeg ttyd" +short_desc="Your CLI home video recorder" +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 + +post_install() { + vlicense LICENSE + + VHS="${DESTDIR}/usr/bin/vhs" + for shell in bash fish zsh; do + vtargetrun ${VHS} completion ${shell} > vhs.${shell} + vcompletion vhs.${shell} ${shell} + done + + vtargetrun ${VHS} manual > vhs.1 + vman vhs.1 +}