From 1e6f2f608ce82cf90f96ea4dc396ced020e35240 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 17 Oct 2024 20:51:32 +0200 Subject: [PATCH] New package: ov-0.37.0 --- srcpkgs/ov/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/ov/template diff --git a/srcpkgs/ov/template b/srcpkgs/ov/template new file mode 100644 index 00000000000..41589c84e84 --- /dev/null +++ b/srcpkgs/ov/template @@ -0,0 +1,26 @@ +# Template file for 'ov' +pkgname=ov +version=0.37.0 +revision=1 +build_style=go +build_helper=qemu +go_import_path=github.com/noborus/ov +go_ldflags="-X main.Version=${version} -X main.Revision=none" +short_desc="Feature-rich terminal-based text viewer" +maintainer="Bnyro " +license="MIT" +homepage="https://noborus.github.io/ov/" +changelog="https://github.com/noborus/ov/releases" +distfiles="https://github.com/noborus/ov/archive/refs/tags/v${version}.tar.gz" +checksum=8d141f641f34749ce4bf48abc4beb9defe2cf8a02539ee045d05aa616930e1b9 + +post_install() { + local ov="${DESTDIR}/usr/bin/ov" + for shell in bash fish zsh; do + vtargetrun ${ov} --completion ${shell} > ov.${shell} + vcompletion ov.${shell} ${shell} + done + vlicense LICENSE + vsconf ov.yaml config.yaml + vsconf ov-less.yaml config-less.yaml +}