diff --git a/srcpkgs/gt/template b/srcpkgs/gt/template new file mode 100644 index 00000000000..f48d7916adf --- /dev/null +++ b/srcpkgs/gt/template @@ -0,0 +1,21 @@ +# Template file for 'gt' +pkgname=gt +version=1.4.1 +revision=1 +build_style=go +go_import_path="github.com/elbachir-one/${pkgname}" +short_desc="A tree-like command-line tool written in Go" +maintainer="elbachir-one " +license="GPL-3.0-or-later" +homepage="https://github.com/elbachir-one/gt" +distfiles="https://github.com/elbachir-one/gt/archive/refs/tags/v${version}.tar.gz" +checksum=8bbfa5b9b3ef756f547d0f40a4de612ffa957a6eb45fee735a9737c0a8824189 + +do_build() { + go build -o gt . +} + +do_install() { + install -Dm755 gt "$DESTDIR"/usr/bin/gt + install -Dm644 gt.1 "$DESTDIR"/usr/share/man/man1/gt.1 +}