Adding gt a tree like command-line tool written in Go

This commit is contained in:
elbachir-one 2024-09-03 04:59:07 +01:00
parent 3579f1cd5b
commit 9d277c2c2c

21
srcpkgs/gt/template Normal file
View file

@ -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 <bachiralfa@gmail.com>"
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
}